class ActiveRecord::AttributeAssignmentError

The exception has an attribute property that is the name of the offending attribute.
method.
Raised when an error occurred while doing a mass assignment to an attribute through the

def initialize(message = nil, exception = nil, attribute = nil)

def initialize(message = nil, exception = nil, attribute = nil)
  super(message)
  @exception = exception
  @attribute = attribute
end