ROR 3 defining foreign key relationship?

I think it could be like this: class User belongs_to :game end class Game has_one :host_user, :class_name => "User" has_one :visit_user, :class_name => "User" end.

Thank you for the reply! Another requirement I have is a User may partake in many games... so how do I go about adding that? Can a User belong_to :game as well as has_many :games?

– StackAccount May 10 at 20:08 For this purpose you should read about has_and_belongs_to_many association. – megas May 11 at 5:07.

ROR 3 conditions in routes. How to remove table view from a XIB?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions