]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Changed User model to not allow nil display_name (w/ tests)
[rails.git] / app / controllers / api_controller.rb
index f9b48cb1c5281800d49d5facae8ea0100d94525d..81b8bca5323f3cbe33bb1a2c990679b8a9ca5cce 100644 (file)
@@ -67,7 +67,7 @@ class ApiController < ApplicationController
           if gpx_file.identifiable?
             track << (XML::Node.new("name") << gpx_file.name)
             track << (XML::Node.new("desc") << gpx_file.description)
-            track << (XML::Node.new("url") << url_for(:controller => "trace", :action => "view", :display_name => gpx_file.user.display_name, :id => gpx_file.id))
+            track << (XML::Node.new("url") << url_for(:controller => "traces", :action => "show", :display_name => gpx_file.user.display_name, :id => gpx_file.id))
           end
         else
           # use the anonymous track segment if the user hasn't allowed