I'd probably use a separate belongs_to association for each of the two teams. You don't really want a many-many relationship as teams can have many games but each game can have only two. The downside is it becomes a little bit trickier to handle any sql to find what games a team was in since there are two relationships.
I'm not sure if there's a way to limit that without digging deep into the input-many tag. Maybe just add a validation to ensure there's 2 and only 2 teams selected? Wait, a quick glance at the tag and you might be able to get what you want by something like <input-many minimum="2" without-add-item without-remove-item /> Untested. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/9b1SVWZCq3kJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
