X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d2e11a327eb686bd2d1293ac146a2bb9730ba19b..947a41edee95df9e75cce0452277e2a00a8b5fa5:/app/controllers/ways_controller.rb 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