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:



55
56
57
# File 'lib/action_controller/metal/strong_parameters.rb', line 55

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