AWDWR : Self-Referential Question

clem = Employee.new(:name => “Clem”)

I don’t see any attributes declared in the Employee class. Where is it
declared?

Suddenly the next page has
“Figure18.3:MethodsCreatedbyRelationshipDeclarations”. Looks
un-related to the topic under discussion.

On 10/21/06, Bala P. [email protected] wrote:

clem = Employee.new(:name => “Clem”)

I don’t see any attributes declared in the Employee class. Where is it declared?

Suddenly the next page has
“Figure18.3:MethodsCreatedbyRelationshipDeclarations”. Looks
un-related to the topic under discussion.

Employee is a subclass of ActiveRecord::Base. The attributes are
mapped automatically from the columns in the database table that backs
the Employee class.

Was that your question?

– James

Employee is a subclass of ActiveRecord::Base. The attributes are
mapped automatically from the columns in the database table that backs
the Employee class.

Was that your question?

Thank you. That answers my question.