Displaying 1 result from an estimated 1 matches for "belongs_to_one".
2006 Aug 16
11
just don''t ''get'' "has one" and "belongs to one"
Well, I understand what they do and how, I just don''t get why!
It seems to me that any time you would have this relationship between
two tables...they should be one table! Agile Rails book gives what
seems to me to be a lame example for this. They use the example of an
"invoice" and an "order". An invoice belongs to an order and an order
has one invoice. Seems