instance method
request_method
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
request_method()
Returns the true HTTP request \method as a lowercase symbol, such as :get. If the request \method is not listed in the HTTP_METHODS constant above, an UnknownHttpMethod exception is raised.
Source
# File actionpack/lib/action_controller/request.rb, line 34
def request_method
@request_method ||= HTTP_METHOD_LOOKUP[super] || raise(UnknownHttpMethod, "#{super}, accepted HTTP methods are #{HTTP_METHODS.to_sentence(:locale => :en)}")
end
Defined in actionpack/lib/action_controller/request.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Request