Ruby on Rails Sunday, August 31, 2014




2014-08-31 19:16 GMT+02:00 Thomas O'Boyle <thomashoboyle@gmail.com>:
 I added the "has_many: cars" line in app/models/user.rb just like the instructor.  

Typo or copied? It has to be `has_many :cars` instead of `has_many: cars`! 

If it is just a typo, please show us your complete `db/schema.rb` and `app/models/{user,car}.rb`

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BbCVss__SivyCT8DjcZynUXsS90wCyCWgjEKjJQ6neFHcjERA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment