Let me describe what i want to do:
There is a Match model, which should have info about what players and what clans attended in it, with division of home players and clan and away players and clan.
That is pretty easy, but there is another model: Summoner. In each match every player has different summoner and I need to do something like this: Match.find(1).players_home.find(1).Summoner.name to extract which summoner played player 1 in home team.
The point is: each player in each match can play with different summoner.
I hope I described it clearly.
Regards.
Let me describe what i want to do: There is a Match model, which
Share
I’m not really sure about all your specifications regarding when an association is one or several, but I think something like this could be it:
In this setup every match has several participations. Every participation belongs to the player that is participating and also belongs to a summoner for that player and match. It can then be utilized perhaps like this:
In Controller
In View
I hope this was at least somewhat what you where going for. Let me know if you are looking for something else.