xml.instruct! xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do xml.channel do xml.title "Akamusic artists feed" xml.link "#{$url}" xml.pubDate CGI.rfc1123_date(@productions.first.updated_at) if @productions.any? xml.description "Akamusic feed" @productions.each do |prod| xml.item do xml.title h(prod.user.rname) xml.link "#{$url}#{vlink prod.user}" xml.description h(prod.content) xml.pubDate CGI.rfc1123_date(prod.created_at) xml.guid "#{$url}#{vlink prod.user}" xml.author "#{prod.user.login}" xml.comments "#{$url}#{vlink prod.user}" end end end end