search for: gamegenre

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

Did you mean: game_genres
2007 Sep 23
3
Connecting a row of an unknown table to another row of an unknown table
...has_many :elements, :through => :game_elements end class 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 multipl...