]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/traces/georss.rss.builder
Rename trace local in trace description partial
[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.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.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
         end
 
         xml.dc :creator, trace.user.display_name