16 lines
454 B
Ruby
16 lines
454 B
Ruby
xml.instruct! :xml, :version => "1.0"
|
|
xml.rss :version => "2.0" do
|
|
xml.channel do
|
|
xml.title @aff.title
|
|
xml.link "/xhr/archive_files/rssfeed/#{@aff.uid}.rss"
|
|
|
|
for archive_file in @archive_files
|
|
xml.item do
|
|
xml.title archive_file.title
|
|
xml.description archive_file.description
|
|
xml.pubDate archive_file.created_at.to_s(:rfc822)
|
|
xml.link page_for_archive_file(archive_file)
|
|
end
|
|
end
|
|
end
|
|
end |