Exception: ActionController::ExpectedParameterMissing

Inherits:
ParameterMissing show all
Defined in:
lib/action_controller/metal/strong_parameters.rb

Overview

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

Instance Attribute Summary

Attributes inherited from ParameterMissing

#keys, #param

Method Summary

Methods inherited from ParameterMissing

#corrections, #initialize

Constructor Details

This class inherits a constructor from ActionController::ParameterMissing