around_action :api_call_handle_error
before_action :lookup_user_by_id, :only => [:show]
around_action :api_call_handle_error
before_action :lookup_user_by_id, :only => [:show]
- def show
- if @user.visible?
- render :action => :show, :content_type => "text/xml"
- else
- head :gone
- end
- end
-
- def details
- @user = current_user
- render :action => :show, :content_type => "text/xml"
- end
+ before_action :set_request_formats, :except => [:gpx_files]
def index
raise OSM::APIBadUserInput, "The parameter users is required, and must be of the form users=id[,id[,id...]]" unless params["users"]
def index
raise OSM::APIBadUserInput, "The parameter users is required, and must be of the form users=id[,id[,id...]]" unless params["users"]