request_method (ActionController::AbstractRequest)

    # File lib/action_controller/request.rb, line 20
        def request_method
          @request_method ||= begin
            method = ((@env['REQUEST_METHOD'] == 'POST' && !parameters[:_method].blank?) ? parameters[:_method].to_s : @env['REQUEST_METHOD']).downcase
            if ACCEPTED_HTTP_METHODS.include?(method)
              method.to_sym
            else
              raise UnknownHttpMethod, "#{method}, accepted HTTP methods are #{ACCEPTED_HTTP_METHODS.to_a.to_sentence}"
            end
          end
        end