Rails and Mongoid best way to implement sharing system
- by Matteo Pagliazzi
I have to model User and Board in rails using mongoid as ODM.
Each board is referenced to an user through a foreign key user_id and now I want to add the ability to share a board with other users.
Following CRUD I'd create a new Model called something like Share and it's releated Controller with the ability to create/edit/delete a Share but I…