]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
can now navigate to the map from a searched-for tag in a way
[rails.git] / app / controllers / way_controller.rb
index f9fd70af41443915e680ccd9f66c8b7a3fb8c000..8daac7cc2c543487a4015bbdd7c478d9ec3fee8e 100644 (file)
@@ -90,7 +90,7 @@ class WayController < ApplicationController
     ids = params['ways'].split(',').collect {|w| w.to_i }
     if ids.length > 0
       waylist = Way.find(ids)
-      doc = get_xml_doc
+      doc = OSM::API.new.get_xml_doc
       waylist.each do |way|
         doc.root << way.to_xml_node
       end