X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e7f943c715d7104fd4f22fe59a79a5d52e71a7c4..b96391e456fd7bddf28b8e283d74f081b5d3ec99:/app/controllers/ways_controller.rb?ds=sidebyside diff --git a/app/controllers/ways_controller.rb b/app/controllers/ways_controller.rb index 85d9b5a5b..caf787105 100644 --- a/app/controllers/ways_controller.rb +++ b/app/controllers/ways_controller.rb @@ -22,7 +22,7 @@ class WaysController < ApplicationController render :plain => way.id.to_s end - def read + def show way = Way.find(params[:id]) response.last_modified = way.timestamp @@ -82,7 +82,7 @@ class WaysController < ApplicationController end end - def ways + def index unless params["ways"] raise OSM::APIBadUserInput, "The parameter ways is required, and must be of the form ways=id[,id[,id...]]" end