xml.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 "Kenwilber.com News" xml.link url_for :only_path => false, :controller => 'articles' 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 => 'articles', :action => 'show', :id => new.id end end end end