Exception: ActionController::UnpermittedParameters
- Inherits:
-
IndexError
- Object
- IndexError
- ActionController::UnpermittedParameters
- Defined in:
- lib/action_controller/parameters.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params) ⇒ UnpermittedParameters
constructor
A new instance of UnpermittedParameters.
Constructor Details
#initialize(params) ⇒ UnpermittedParameters
Returns a new instance of UnpermittedParameters.
23 24 25 26 |
# File 'lib/action_controller/parameters.rb', line 23 def initialize(params) @params = params super("found unpermitted parameters: #{params.join(", ")}") end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
21 22 23 |
# File 'lib/action_controller/parameters.rb', line 21 def params @params end |