Exception: ActionController::UnfilteredParameters

Inherits:
ArgumentError
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeUnfilteredParameters

:nodoc:



62
63
64
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 62

def initialize # :nodoc:
  super("unable to convert unpermitted parameters to hash")
end