Permalink
Browse files

Fix RSS link field, now links to root_url

  • Loading branch information...
jschwindt committed Apr 10, 2012
1 parent ebe0c64 commit 937d99388a6ac72893213d75b0f30517bce3a7a8
Showing with 5 additions and 7 deletions.
  1. +3 −4 app/views/posts/index.rss.builder
  2. +2 −3 app/views/torrents/index.rss.builder
@@ -1,13 +1,12 @@
xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0", 'xmlns:atom' => "http://www.w3.org/2005/Atom" do
xml.channel do
- xml.title "Programas Recientes - Venganzas del Pasado"
- xml.description "Archivos MP3 del programa de radio La Venganza Será Terrible de Alejandro Dolina"
+ xml.title "Venganzas del Pasado - Programas Recientes"
+ xml.description "Archivos MP3 del programa de radio 'La Venganza Será Terrible' de Alejandro Dolina"
+ xml.link root_url
if @posts.first_page?
- xml.link posts_url(:rss)
xml.atom :link, :href => posts_url(:rss), :rel => "self", :type => "application/rss+xml"
else
- xml.link posts_url(:rss, :page => @posts.current_page)
xml.atom :link, :href => posts_url(:rss, :page => @posts.current_page), :rel => "self", :type => "application/rss+xml"
end
@@ -1,10 +1,9 @@
xml.instruct! :xml, :version => '1.0'
xml.rss :version => "2.0", 'xmlns:atom' => "http://www.w3.org/2005/Atom" do
xml.channel do
- xml.title 'Venganzas del Pasado'
+ xml.title 'Venganzas del Pasado - Torrents de programas recientes'
xml.description 'Torrents de audios de La Venganza será Terrible'
- xml.link torrents_url(:rss)
- xml.atom :link, :href => torrents_url(:rss), :rel => "self", :type => "application/rss+xml"
+ xml.link root_url
for torrent in @torrents
xml.item do

0 comments on commit 937d993

Please sign in to comment.