X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e7f943c715d7104fd4f22fe59a79a5d52e71a7c4..35a2d66e1960b00e5ed0cecbe4263cdeedb1ad62:/app/controllers/relations_controller.rb diff --git a/app/controllers/relations_controller.rb b/app/controllers/relations_controller.rb index 27bf5cdf8..8c8005acc 100644 --- a/app/controllers/relations_controller.rb +++ b/app/controllers/relations_controller.rb @@ -22,7 +22,7 @@ class RelationsController < ApplicationController render :plain => relation.id.to_s end - def read + def show relation = Relation.find(params[:id]) response.last_modified = relation.timestamp if relation.visible @@ -123,7 +123,7 @@ class RelationsController < ApplicationController end end - def relations + def index raise OSM::APIBadUserInput, "The parameter relations is required, and must be of the form relations=id[,id[,id...]]" unless params["relations"] ids = params["relations"].split(",").collect(&:to_i)