instance method
POST
Ruby on Rails 4.2.9
Since v3.0.20Signature
POST()
Override Rack’s POST method to support indifferent access
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 307
def POST
@env["action_dispatch.request.request_parameters"] ||= Utils.deep_munge(normalize_encode_params(super || {}))
rescue Rack::Utils::ParameterTypeError, Rack::Utils::InvalidParameterError => e
raise ActionController::BadRequest.new(:request, e)
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 307
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request