class ActionController::ParameterMissing

Parent:
KeyError

Raised when a required parameter is missing.

params = ActionController::Parameters.new(a: {})
params.fetch(:b)
# => ActionController::ParameterMissing: param not found: b
params.require(:a)
# => ActionController::ParameterMissing: param not found: a

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