This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
method()
public
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.)
# File actionpack/lib/action_controller/request.rb, line 42
def method
request_method == :head ? :get : request_method
end