Exception: ActionController::UnpermittedParameters
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
IndexError
|
|
Instance Chain:
self,
IndexError
|
|
Inherits: |
IndexError
|
Defined in: | actionpack/lib/action_controller/metal/strong_parameters.rb |
Overview
Raised when a supplied parameter is not expected and Parameters.action_on_unpermitted_parameters is set to :raise
.
params = ActionController::Parameters.new(a: "123", b: "456")
params.permit(:c)
# => ActionController::UnpermittedParameters: found unpermitted parameters: :a, :b
Class Method Summary
- .new(params) ⇒ UnpermittedParameters constructor Internal use only
Instance Attribute Summary
- #params readonly Internal use only
Constructor Details
.new(params) ⇒ UnpermittedParameters
This method is for internal use only.
Instance Attribute Details
#params (readonly)
This method is for internal use only.
[ GitHub ]
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 60
attr_reader :params # :nodoc: