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
<code/>and<pre/>for code samples.