class ActiveRecord::UnknownAttributeError

Parent:
NoMethodError

Raised when unknown attributes are supplied via mass assignment.

Attributes

attribute[R]
record[R]

Public Class Methods

new(record, attribute) Show source
# File activerecord/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
Calls superclass method

© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.