W3cubDocs

/Ruby on Rails 7.0

class ActionController::UnpermittedParameters

Parent:
IndexError

Raised when a supplied parameter is not expected and ActionController::Parameters.action_on_unpermitted_parameters is set to :raise.

params = ActionController::Parameters.new(a: "123", b: "456")
params.permit(:c)
# => ActionController::UnpermittedParameters: found unpermitted parameters: :a, :b

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.