But please correct me if i’m wrong:
to better conceptualize all the different relationships, think of them
as this:
has_many_in :your_association
has_one_in :your association
otherwise, just trying to read ’ has_many’ is kinda vague. It could mean
‘has_many_of’, and if you think of it like that, your association would
then turn into a ‘has_one’ instead of many…
just imagining an ‘in’ at the end of your relationships makes it so much
clearer.
But please correct me if i’m wrong:
to better conceptualize all the different relationships, think of them
as this:
has_many_in :your_association
has_one_in :your association
I may be wrong but I think you’re thinking of the tables rather than the
objects the tables represent.
Think of how you would describe the relationship between (using Gareth’s
example), a Millionaire and his Houses:
A millionaire has many houses
A house belongs to a millionaire