X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/899fc66a62b036adcfd59f5da80c7fc6f30cd3a8..bf9dd8f350ca1b54afb79dda79506d980ccb5738:/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