X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bbd769304cf29bbd9574fd3c7167feb7d5d0aa17..dd396a773eeb62f622dfa9e2540ad98a754d24c0:/app/controllers/way_controller.rb diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index c3640609a..3b6491cf0 100644 --- a/app/controllers/way_controller.rb +++ b/app/controllers/way_controller.rb @@ -77,7 +77,6 @@ class WayController < ApplicationController # if we get here, all is fine, otherwise something will catch below. render :nothing => true - return rescue OSM::APIAlreadyDeletedError render :text => "", :status => :gone rescue OSM::APIPreconditionFailedError @@ -132,7 +131,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