Ok, although not entirely new to RoR, myself and a colleague have been
“discussing” some best practices for
- table of users
- table of companies
- a user can belong to multiple companies
- end result is that the list will be used for a select list.
So, if I want to get a list of companies that a particular user has
been with in the last X time frame, which model should have the
find (because we may / may not have to do a “GROUP BY”
Should it be in the users model, because it’s all the companies would
have the user in common?
Should it be in the companies model, because it will be a collection
Thanks in adavance