Exception: ActionController::ParameterForbidden
- Inherits:
-
IndexError
- Object
- IndexError
- ActionController::ParameterForbidden
- Defined in:
- lib/action_controller/parameters.rb,
lib/action_controller/strict_parameters.rb
Instance Attribute Summary collapse
-
#param ⇒ Object
readonly
Returns the value of attribute param.
Instance Method Summary collapse
-
#initialize(param) ⇒ ParameterForbidden
constructor
A new instance of ParameterForbidden.
Constructor Details
#initialize(param) ⇒ ParameterForbidden
Returns a new instance of ParameterForbidden.
18 19 20 21 |
# File 'lib/action_controller/parameters.rb', line 18 def initialize(param) @param = param super("key forbidden: #{param}") end |
Instance Attribute Details
#param ⇒ Object (readonly)
Returns the value of attribute param.
16 17 18 |
# File 'lib/action_controller/parameters.rb', line 16 def param @param end |