Ruby on Rails latest stable (v7.1.3.2) - 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.