class

ActionController::ExpectedParameterMissing

rails latest stable - Superclass: ActionController::ParameterMissing

Class not available on this version

This class is only available on newer versions. The first available version (v8.0.0) is shown here.

Raised from `expect!` when an expected parameter is missing or is of an incompatible type.

params = ActionController::Parameters.new(a: {})
params.expect!(:a)
# => ActionController::ExpectedParameterMissing: param is missing or the value is empty or invalid: a

Files

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