instance method
method
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
method()
The HTTP request \method as a lowercase symbol, such as :get. Note, HEAD is returned as :get since the two are functionally equivalent from the application’s perspective.
Source
# File actionpack/lib/action_controller/request.rb, line 39
def method
request_method == :head ? :get : request_method
end
Defined in actionpack/lib/action_controller/request.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::AbstractRequest