I'm rather confused by the construction and have tried several ways to get the following situation to work for my test. But I can't get it to work.
This is what I want:
When an activity is being made. Several clients can be assigned to that activity. Therefore creating access to @oneActivity.clients
or @oneClient.activities
.
Should I put up a references :client
in my activity migration or the other way around? And which of the two should have to belongs_to
in the model and which the has_many
?