Flowdock
Ruby on Rails latest stable (v5.2.3) - 0 notes - Superclass: NoMethodError

Raised when unknown attributes are supplied via mass assignment.

class Person
  include ActiveModel::AttributeAssignment
  include ActiveModel::Validations
end

person = Person.new
person.assign_attributes(name: 'Gorby')
# => ActiveModel::UnknownAttributeError: unknown attribute 'name' for Person.
Show files where this class is defined (1 file)
Register or log in to add new notes.