Exception: ActionController::UnfilteredParameters

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

Constructor Details

#initializeUnfilteredParameters

:nodoc:



75
76
77
# File 'lib/action_controller/metal/strong_parameters.rb', line 75

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