]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/traces_controller.rb
Move generation of gpx_file XML from model to builder
[rails.git] / app / controllers / api / traces_controller.rb
index 86f1370f64d8e1d7198c3bb64e17ba7a6c13f24e..fd43a1d44500681ee874c8faf15e2bfe07aef6c4 100644 (file)
@@ -19,7 +19,8 @@ module Api
       trace = Trace.visible.find(params[:id])
 
       if trace.public? || trace.user == current_user
-        render :xml => trace.to_xml.to_s
+        @traces = [trace]
+        render "trace"
       else
         head :forbidden
       end