instance method
check_method
Ruby on Rails 6.1.7.10
Since v3.1.12 PrivateSignature
check_method(name)
No documentation comment.
Parameters
-
namereq
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 446
def check_method(name)
HTTP_METHOD_LOOKUP[name] || raise(ActionController::UnknownHttpMethod, "#{name}, accepted HTTP methods are #{HTTP_METHODS[0...-1].join(', ')}, and #{HTTP_METHODS[-1]}")
name
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 446
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request