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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/21/06, Bala Paranj <bcparanj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
> > 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---