From 59e2349b5a04718fef17e0d8ea18681eb89d3ae8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 28 Jan 2008 08:54:45 +0000 Subject: [PATCH] Make ways_for_node work with the multipart primary key stuff. --- app/controllers/way_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index c3640609a..4b52ad3f0 100644 --- a/app/controllers/way_controller.rb +++ b/app/controllers/way_controller.rb @@ -132,7 +132,7 @@ class WayController < ApplicationController end def ways_for_node - wayids = WayNode.find(:all, :conditions => ['node_id = ?', params[:id]]).collect { |ws| ws.id }.uniq + wayids = WayNode.find(:all, :conditions => ['node_id = ?', params[:id]]).collect { |ws| ws.id[0] }.uniq doc = OSM::API.new.get_xml_doc -- 2.43.2