Initial import
This commit is contained in:
13
app/views/user/rss.xml.builder
Normal file
13
app/views/user/rss.xml.builder
Normal file
@@ -0,0 +1,13 @@
|
||||
xml.instruct! :xml, :version=>"1.0"
|
||||
xml.instruct! :rss, :version=>"2.0"
|
||||
xml.channel{
|
||||
for course in @courses
|
||||
for event in course.events
|
||||
xml.item do
|
||||
xml.title("[" + course.short_name + "] " + event.title)
|
||||
xml.pubDate(Time.parse(event.date.to_s).rfc822)
|
||||
xml.description(event.description)
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user