Associations (belongs_to, has_many)
Opened this issue · 5 comments
mixflame commented
I don't care about the more advanced associations for now.
KCErb commented
Agreed
mixflame commented
We have pluralization working now and all of the inflections. This might be easier now.
mixflame commented
Will try this tomorrow
mixflame commented
With the current design of objects in my production app, neither of my models actually belongs to or has many of the other. So we will need to try this in the debug app instead.
mixflame commented
Just to help my self
Car has_many Tires # => Car.first.tires #=> Array of Tires belonging to Cars
Tires belongs_to Car # => Tire.first.car #=> SwissModel instance of Car which Tire belongs to