class

ActionController::UnfilteredParameters

v6.1.7.7 - Show latest stable - Superclass: ArgumentError

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

Files

  • actionpack/lib/action_controller/metal/strong_parameters.rb