render :plain => relation.id.to_s
end
- def read
+ def show
relation = Relation.find(params[:id])
response.last_modified = relation.timestamp
if relation.visible
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)