public Method

AbstractRequest.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 Code

# File action_controller/request.rb, line 34
def method
  request_method == :head ? :get : request_method
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.