2

I am new to rails. I'm trying to understand relationships in the database. I have 2 tables, users and disciplines and a join table called interests. Users have many disciplines through interests and disciplines have many users through interests.

But what if I want to update a users interests? Do I have to delete all entries directly in the join table and then create a new 'set' or is there a clever rails way that handles this where I can work directly on the outside models, users and disciplines.

I've looked for a direct answer to this for rails 4 without success.

Many thanks

GhostRider
  • 2,109
  • 7
  • 35
  • 53

0 Answers0