v4.0.2 - 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 not found: b
params.require(:a)
# => ActionController::ParameterMissing: param not found: a
Show files where this class is defined (1 file)
Register or log in to add new notes.