3 xml.rss("version" => "2.0",
4 "xmlns:dc" => "http://purl.org/dc/elements/1.1/",
5 "xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#",
6 "xmlns:georss" => "http://www.georss.org/georss") do
9 xml.description t(".title")
10 xml.link url_for(:controller => :traces, :action => :index, :only_path => false)
13 xml.url image_url("mag_map-rss2.0.png")
17 xml.link url_for(:controller => :traces, :action => :index, :only_path => false)
20 @traces.each do |trace|
24 xml.link url_for(:controller => :traces, :action => :show, :id => trace.id, :display_name => trace.user.display_name, :only_path => false)
25 xml.guid url_for(:controller => :traces, :action => :show, :id => trace.id, :display_name => trace.user.display_name, :only_path => false)
28 xml.cdata! render(:partial => "description", :object => trace, :formats => [:html])
31 xml.dc :creator, trace.user.display_name
33 xml.pubDate trace.timestamp.to_s(:rfc822)
35 if trace.latitude && trace.longitude
36 xml.geo :lat, trace.latitude
37 xml.geo :long, trace.longitude
38 xml.georss :point, "#{trace.latitude} #{trace.longitude}"