Displaying 1 result from an estimated 1 matches for "teams_peopl".
Did you mean:
teams_people
2006 Jul 28
2
has_many :through with multiple paths
...n records. A single
Person record could be on 6 different teams at the same time in
different roles. the same person could even be on the same team multiple
times in different roles.
I am not 100% sure how to go about this. I am thinking that I will need
something like an intermediate record.
teams_people
id
team_id
people_id
role
I would then have (I think) to have methods in the Team model that will
find each person in the @team.people array based on the role.
I the end I want a view to have something like:
Team Name
Manager: Person1, Person 4
Programmer: Person2, Person 3
Designer: Person2
L...