From: Tom Hughes Date: Thu, 20 Dec 2007 10:23:46 +0000 (+0000) Subject: The to_xml_node method for a way wants a list of node IDs, not a list X-Git-Tag: live~7999 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/24ac6b49f76d91722f26a095e7c27df49df26a0a The to_xml_node method for a way wants a list of node IDs, not a list of nodes... --- diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 42989f05a..d7f47e5ec 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -110,7 +110,7 @@ class SearchController < ApplicationController end ways.each do |way| - doc.root << way.to_xml_node(nodes, user_display_name_cache) + doc.root << way.to_xml_node(nodes.collect { |n| n.id }, user_display_name_cache) end relations.each do |rel|