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!
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?
--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4e8763a7-5235-400e-af07-209a44a5c30b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I added the "has_many: cars" line in app/models/user.rb just like the instructor.