ri > ActiveModel::UnknownAttributeError

= ActiveModel::UnknownAttributeError < NoMethodError

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
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.
------------------------------------------------------------------------
= Class methods:

  new

= Instance methods:

  attribute
  record

= Attributes:

  attr_reader attribute
  attr_reader record

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 18:53 @216.73.216.199
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!