123456789_123456789_123456789_123456789_123456789_

Exception: ActionController::UnfilteredParameters

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ArgumentError
Instance Chain:
self, ArgumentError
Inherits: ArgumentError
  • ::Object
Defined in: actionpack/lib/action_controller/metal/strong_parameters.rb

Overview

Raised when a Parameters instance is not marked as permitted and an operation to transform it to hash is called.

params = ActionController::Parameters.new(a: "123", b: "456")
params.to_h
# => ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash

Class Method Summary

Constructor Details

.newUnfilteredParameters

This method is for internal use only.
[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 75

def initialize # :nodoc:
  super("unable to convert unpermitted parameters to hash")
end