search for: team_tournaments

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

2008 Jan 27
4
(REST) Nested routes
Hello, I''m in troubles with nested routes. I have three models: Team, Tournament and TeamTournaments class Team < ActiveRecord::Base has_many :tournaments, :through => :team_tournaments has_many :team_tournaments class TeamTournament < ActiveRecord::Base belongs_to :team, :foreign_key => ''team_id'' belongs_to :tournament, :class_name => ''League'', :foreign_key => ''tournament_id'' class Tournament < ActiveRec...