Exception: ActiveRecord::UnknownAttributeError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
NoMethodError
|
|
Instance Chain:
self,
NoMethodError
|
|
Inherits: |
NoMethodError
|
Defined in: | activerecord/lib/active_record/errors.rb |
Overview
Raised when unknown attributes are supplied via mass assignment.
Class Method Summary
- .new(record, attribute) ⇒ UnknownAttributeError constructor
Instance Attribute Summary
- #attribute readonly
- #record readonly
Constructor Details
.new(record, attribute) ⇒ UnknownAttributeError
Instance Attribute Details
#attribute (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/errors.rb', line 184
attr_reader :record, :attribute
#record (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/errors.rb', line 184
attr_reader :record, :attribute