search for: team_tourna

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

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 < Acti...