Hi there. I’m making my first rails app and taking Hartl’s tutorial app
my starting point. All the features he implements are things I want.
Primarily the site wants to be a collection organising site. I’ll be
a table of ITEMS, and USERS can add those ITEMS to their collection or
What I’m trying to decide is where best to put the “who has what”
information. It seems to me that doing it all in the USERS or ITEMS
might be a bit cumbersome. For instance an ITEM “has many” USERS with a
long list of them, or a USER “has many” ITEMS, again with a long list.
Would it be better to use “has many through” with an OWNERSHIP or
I’m thinking along the lines of
1, USER 5, ITEM 322, WANTLIST
2, USER 9, ITEM 27, COLECTION
3, USER 6, ITEM 90, COLLECTION
If this is a better idea would it make more sense to give WANTLIST a
I’m trying to work out what would be the most efficient way of doing it.
They want to be easily indexable so that you can have “USER has 378
and the like.
Any pointers much appreciated.