123456789_123456789_123456789_123456789_123456789_

Exception: ActionController::UnpermittedParameters

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, IndexError
Instance Chain:
self, IndexError
Inherits: IndexError
  • ::Object
Defined in: actionpack/lib/action_controller/metal/strong_parameters.rb

Overview

Raised when a supplied parameter is not expected and 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