The to_xml_node method for a way wants a list of node IDs, not a list
authorTom Hughes <tom@compton.nu>
Thu, 20 Dec 2007 10:23:46 +0000 (10:23 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 20 Dec 2007 10:23:46 +0000 (10:23 +0000)
of nodes...

app/controllers/search_controller.rb

index 42989f05a8f844ecd9745e2e21cfad466f0112ef..d7f47e5ec187ff417f1f45440edc3475f282c240 100644 (file)
@@ -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|