class ActiveRecord::UnknownAttributeError - activerecord-4.2.4 Documentation

# class ActiveRecord::UnknownAttributeError

Raised when unknown attributes are supplied via mass assignment.

### Attributes

attribute[R]
record[R]

### Public Class Methods

new(record, attribute) click to toggle source
Calls superclass method

    # File lib/active_record/errors.rb, line 186
    def initialize(record, attribute)
      @record = record
      @attribute = attribute.to_s
      super("unknown attribute '#{attribute}' for #{@record.class}.")
    end