Exception: ActionController::ParameterMissing

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ ParameterMissing

Returns a new instance of ParameterMissing.


14
15
16
17
# File 'lib/action_controller/parameters.rb', line 14

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

Instance Attribute Details

#paramObject (readonly)

Returns the value of attribute param


12
13
14
# File 'lib/action_controller/parameters.rb', line 12

def param
  @param
end