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

16 lines
443 B
Ruby

xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
xml.channel do
xml.title @bf.title
xml.link "/xhr/announcements/rssfeed/73999228.rss"
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