Exception: ActionController::UnfilteredParameters
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ActionController::UnfilteredParameters
- Defined in:
- lib/action_controller/metal/strong_parameters.rb
Overview
Raised when a Parameters instance is not marked as permitted and an operation to transform it to hash is called.
params = ActionController::Parameters.new(a: "123", b: "456")
params.to_h
# => ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash
Instance Method Summary collapse
-
#initialize ⇒ UnfilteredParameters
constructor
:nodoc:.
Constructor Details
#initialize ⇒ UnfilteredParameters
:nodoc:
65 66 67 |
# File 'lib/action_controller/metal/strong_parameters.rb', line 65 def initialize # :nodoc: super("unable to convert unpermitted parameters to hash") end |