]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/traces/georss.rss.builder
Merge remote-tracking branch 'upstream/pull/4559'
[rails.git] / app / views / traces / georss.rss.builder
index 36641fec0b4e2f14c8f7191f0be3f084655840de..ad5bd45b2248d663bb94a514d4dc82dd1bf1b2b1 100644 (file)
@@ -21,11 +21,11 @@ xml.rss("version" => "2.0",
       xml.item do
         xml.title trace.name
 
-        xml.link url_for(:controller => :traces, :action => :show, :id => trace.id, :display_name => trace.user.display_name, :only_path => false)
-        xml.guid url_for(:controller => :traces, :action => :show, :id => trace.id, :display_name => trace.user.display_name, :only_path => false)
+        xml.link show_trace_url(trace.user, trace)
+        xml.guid show_trace_url(trace.user, trace)
 
         xml.description do
-          xml.cdata! render(:partial => "description", :object => trace, :formats => [:html])
+          xml.cdata! render(:partial => "description", :object => trace, :as => "trace", :formats => [:html])
         end
 
         xml.dc :creator, trace.user.display_name