v6.0.0 - Show latest stable - 0 notes - Superclass: KeyError

Raised when a required parameter is missing.

params = ActionController::Parameters.new(a: {})
params.fetch(:b)
# => ActionController::ParameterMissing: param is missing or the value is empty: b
params.require(:a)
# => ActionController::ParameterMissing: param is missing or the value is empty: a
Show files where this class is defined (1 file)
Register or log in to add new notes.