Skip to Content Skip to Search

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