Have you followed his steps and changed your model? In other words, have
you added the line has_many :cars in app/models/user.rb?
Am 31.08.2014 09:42 schrieb "Thomas O'Boyle" <[email protected]>:

> Hi All,
>
> I just started the UT on Rails class through reddit and am completely new
> to programing.  I apologize for not being able to articulate my problem
> clearly.  I am watching this video
> https://www.youtube.com/watch?v=EU98yHB-_7A and at 16:18 when the
> instructor restarts something (terminal) I get completely lost.  He
> consules back into rails after this restart but when I do this I get this:
>
> "User.last.cars
>
>   *User Load (0.4ms)*  *SELECT  "users".* FROM "users"   ORDER BY
> "users"."id" DESC LIMIT 1*
>
> NoMethodError: undefined method `cars' for #<User:0x00......."
>
>
> I apologize again for the poorly asked question but I am really new with
> all of this.
>
> Thanks so much!
>
>
> Happy labor day!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/4e8763a7-5235-400e-af07-209a44a5c30b%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/4e8763a7-5235-400e-af07-209a44a5c30b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BbCVsu%2B8zxYuG5X74ighSYiZpCq%3DOX7Et5PYRBY9P_bEQ1ZOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to