16 lines
445 B
Ruby
16 lines
445 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/#{@bf.uid}.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 |