3 xml.rss("version" => "2.0",
4 "xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#",
5 "xmlns:georss" => "http://www.georss.org/georss") do
8 xml.description @description
9 xml.link url_for(:action => "list", :host => SERVER_URL)
11 xml.url image_path("mag_map-rss2.0.png")
15 xml.link url_for(:action => "list", :host => SERVER_URL)
18 @entries.each do |entry|
20 xml.title h(entry.title)
21 xml.link url_for(:action => "view", :id => entry.id, :display_name => entry.user.display_name, :host => SERVER_URL)
22 xml.guid url_for(:action => "view", :id => entry.id, :display_name => entry.user.display_name, :host => SERVER_URL)
23 xml.description entry.body.to_html
24 xml.author entry.user.display_name
25 xml.pubDate entry.created_at.to_s(:rfc822)
26 xml.comments url_for(:action => "view", :id => entry.id, :display_name => entry.user.display_name, :anchor => "comments", :host => SERVER_URL)
28 if entry.latitude && entry.longitude
29 xml.geo :lat, entry.latitude.to_s
30 xml.geo :long, entry.longitude.to_s
31 xml.georss :point, "#{entry.latitude} #{entry.longitude}"