Exception: ActionController::ParameterMissing

Inherits:
IndexError
  • Object
show all
Defined in:
lib/action_controller/parameters.rb,
lib/action_controller/strict_parameters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ ParameterMissing

Returns a new instance of ParameterMissing.



9
10
11
12
# File 'lib/action_controller/parameters.rb', line 9

def initialize(param)
  @param = param
  super("key not found: #{param}")
end

Instance Attribute Details

#paramObject (readonly)

Returns the value of attribute param.



7
8
9
# File 'lib/action_controller/parameters.rb', line 7

def param
  @param
end