класс ActionController::ParameterMissing
Вызывается, когда требуется параметр отсутствует.
params = ActionController::Parameters.new(a: {})
params.fetch(:b)
# => ActionController::ParameterMissing: param not found: b
params.require(:a)
# => ActionController::ParameterMissing: param not found: a
© 2004–2016 David Heinemeier Hansson
Licensed under the MIT License.