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

Instance Method Summary collapse

Constructor Details

#initializeInvalidParameterKey

:nodoc:


72
73
74
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 72

def initialize # :nodoc:
  super("all keys must be Strings or Symbols")
end