instance method
method
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
method()
Returns the HTTP request \method used for action processing as a lowercase symbol, such as :post. (Unlike #request_method, this method returns :get for a HEAD request because the two are functionally equivalent from the application’s perspective.)
Source
# File actionpack/lib/action_controller/request.rb, line 42
def method
request_method == :head ? :get : request_method
end
Defined in actionpack/lib/action_controller/request.rb line 42
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Request