123456789_123456789_123456789_123456789_123456789_

Exception: ActionController::InvalidParameterKey

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ArgumentError
Instance Chain:
self, ArgumentError
Inherits: ArgumentError
  • ::Object
Defined in: actionpack/lib/action_controller/metal/strong_parameters.rb

Overview

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