Exception: ActionController::ExpectedParameterMissing
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
ParameterMissing,
KeyError
|
|
|
Instance Chain:
self,
ParameterMissing,
DidYouMean::Correctable,
KeyError
|
|
| Inherits: |
ActionController::ParameterMissing
|
| Defined in: | actionpack/lib/action_controller/metal/strong_parameters.rb |
Overview
Raised from expect! when an expected parameter is missing or is of an incompatible type.
params = ActionController::Parameters.new(a: {})
params.expect!(:a)
# => ActionController::ExpectedParameterMissing: param is missing or the value is empty or invalid: a
Class Method Summary
ParameterMissing - Inherited
Instance Attribute Summary
ParameterMissing - Inherited
Instance Method Summary
ParameterMissing - Inherited
Constructor Details
This class inherits a constructor from ActionController::ParameterMissing