class ExpectedParameterMissing

Ruby on Rails 8.0.4

Since v8.0.4

Available in: v8.0.4 v8.1.2

Raised from expect! when an expected parameter is missing or is of an incompatible type.

params = ActionController::Parameters.new(a: {})
params.expect!(:a)
# => ActionController::ExpectedParameterMissing: param is missing or the value is empty or invalid: a

Inherits from

ActionController::ParameterMissing

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close