Topic: need advice on creating tables/associations between Users and Projects
Hi everyone, I just joined this forum, so I am sorry if this question has been asked before. I did do a search and found a few interesting topics, but I wasn't able to find the exact answer I was looking for.
I am trying to create a simple Project Management tool with multiple users. Each one of my users can work on multiple projects and each project can have multiple users.
I have a User model and a Project model. I am not sure if I am supposed to use HABTM or the has_many/through method. I am also not sure which one of my models is supposed to have the habtm code and which one the belongs_to code.
If someone could give me some sample code or point me to any existing articles, i would greatly appreciate it.