rss.rxml
teensyweb/app/views/forum/rss.rxml · 484 B
From the archive teensyweb.tar.gz
Download the archive « Back to the archive contents
xml.rss('version' => '2.0') do
xml.channel do
xml.title(TWCONFIG['site_name'])
xml.link(@request.protocol + @request.host_with_port + url_for(:rss => nil))
xml.description(page_title)
@posts.each { |p|
xml.item do
xml.title(p.topic.subject)
xml.link(@request.protocol + @request.host_with_port + url_for(:controller => "forum", :action => "postshow", :id => p.id))
xml.pubDate(CGI.rfc1123_date p.updated_at)
end
}
end
end