Exception: ActionController::InvalidParameterKey

Inherits:
ArgumentError
  • Object
show all
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