Forum: Ruby on Rails Table relation problems

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Israel G. (Guest)
on 2009-02-27 19:24
(Received via mailing list)

I need to know if it's possible to do something like this:

The table game_guesses has 2 keys for team: home_key and guest_key. The
problem is that a normal relation would be team has_many/has_one
game_guessbut that is not the case.

I just want to see the team information using or (or other information of the Team object)

Is there a way to solve it? I tried to change the model, but eventually
would lead to a situation like this one.

Israel G.
Joan Rivers  - "The first time I see a jogger smiling, I'll consider
This topic is locked and can not be replied to.