X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f77d4dc4f71b15af58ee6e5b5d63c436482e7b19..0db30c611a99d62381217d86c5a0bd9d104efb42:/app/controllers/api/users_controller.rb diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index d765b4904..d3387bd5f 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -37,11 +37,8 @@ module Api end def gpx_files - doc = OSM::API.new.get_xml_doc - current_user.traces.reload.each do |trace| - doc.root << trace.to_xml_node - end - render :xml => doc.to_s + @traces = current_user.traces.reload + render :content_type => "application/xml" end private