It's time for me to go to bed... but perhaps I'll wake up to a bit of good advice.
I have 3 tables: registrations cars motorcycles I am trying to define the registration object in this way: has_many :cars has_many :motorcycles Then for the cars and motorcycles I'm saying belongs_to :registration Something is quite wrong here. How should I be relating these? I read this tutorial: http://railsguides.phusion.nl/activerecord/association_basics.html I keep referencing back to this, but I cannot find a relationship that fits. I'm sure I'm not understanding something properly about how relationships should work. I just can't wrap my head around the "right way" to do things when setting up relationships. Frustrating. Good night all. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

