announcement-test/app/views/announcement_feeds/rssfeed.rss.builder

16 lines
445 B
Plaintext
Raw Normal View History

2015-09-11 12:28:41 +00:00
xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
xml.channel do
xml.title @bf.title
xml.link "/xhr/announcements/rssfeed/#{@bf.uid}.rss"
2015-09-11 12:28:41 +00:00
for announcement in @announcements
xml.item do
xml.title announcement.title
xml.description announcement.subtitle
xml.pubDate announcement.created_at.to_s(:rfc822)
xml.link page_for_bulletin(announcement)
end
end
end
end