How do you do this in Rails
In my view if I select a user then I want to show all the categories the user is in but the problem is that this is a single table (Legacy DB) there is no relationship
I have tried to do something like this but it doesn't work
where('user in ?', categories)
I Just get ActiveRecord_Relation:0x007fb16f90abf0
Aucun commentaire:
Enregistrer un commentaire