search for: gameel

Displaying 1 result from an estimated 1 matches for "gameel".

Did you mean: gammel
2007 Sep 23
3
Connecting a row of an unknown table to another row of an unknown table
...Genre < ActiveRecord::Base has_many :game_genres has_many :games, :through => :game_genres end class Element < ActiveRecord::Base has_many :game_elements has_many :games, :through => :game_elements end class GameGenre belongs_to :game belongs_to :genre end class GameElement belongs_to :game belongs_to :element end So I''ve got those associations down pat (although, yes, I realize I probably could have used habtm). Here comes the hard part. As well as joining multiple genres and multiple elements to multiple games, I''d also like to be...