rendered paste bodyxml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8"
xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
xml.channel do
xml.title "Untitled.com News"
xml.link url_for :only_path => false, :controller => 'news'
xml.description "The latest happenings on the website."
@news.each do |new|
xml.item do
xml.title new.title
xml.link url_for :only_path => false, :controller => 'news', :action => 'show', :id => new.id
xml.description new.body
xml.guid url_for :only_path => false, :controller => 'news', :action => 'show', :id => new.id
end
end
end
end