Skip to Content Skip to Search
v7.1.0
class ActionController::InvalidParameterKey < ArgumentError

ActionController::InvalidParameterKey

Raised when initializing Parameters with keys that aren’t strings or symbols.

ActionController::Parameters.new(123 => 456)
# => ActionController::InvalidParameterKey: all keys must be Strings or Symbols, got: Integer
Definition files