Re: [Rails] Re: Active Record - Object Wrapping a Table Row
On 8 July 2012 19:57, Doug Jolley <lists@ruby-forum.com> wrote:
>> If you want to be entirely correct, the attributes aren't stored as
>> individual instance variables - they're stored together in a hash.
>> That is usually irrelevant though - the important thing is the
>> accessor methods.
>
> Nice to know; but, you're right that we do not really need to know about
> the internal workings. As you say, we DO need to know about the
> accessor methods and that was the part that I thought was missing from
> the book. I have an earlier edition. It may have been picked up by
> now.
Make sure that the book you are following is written for the version
of Rails that you are using (which should be at least version 3), at
least to the first two levels (eg 3.2) otherwise you will get
horribly confused as the examples will not work.
You might be better working through railstutorial.org, which is free
to use online.
Colin
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home