Exception: ActionController::UnfilteredParameters
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ArgumentError
|
|
Instance Chain:
self,
ArgumentError
|
|
Inherits: |
ArgumentError
|
Defined in: | actionpack/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
Class Method Summary
- .new ⇒ UnfilteredParameters constructor Internal use only
Constructor Details
.new ⇒ UnfilteredParameters
This method is for internal use only.
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 75
def initialize # :nodoc: super("unable to convert unpermitted parameters to hash") end