Exception: ActionController::UnpermittedParameters

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ UnpermittedParameters

Returns a new instance of UnpermittedParameters.



23
24
25
26
# File 'lib/action_controller/parameters.rb', line 23

def initialize(params)
  @params = params
  super("found unpermitted parameters: #{params.join(", ")}")
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



21
22
23
# File 'lib/action_controller/parameters.rb', line 21

def params
  @params
end