my routes file has the following lines
map.resources :players, :has_many => :matches
map.resources :tourney, :has_many => :matches
now I want to be able to display all the matches played by a player and
also all the matches played in the entire tournament. I have two routes
available
tourney_matches GET /tourney/:tourney_id/matches
{:controller=>“matches”, :action=>“index”}
player_matches GET /player/:player_id/matches {:controller=>“matches”,
:action=>“index”}
both these paths call the same action in the matches controller, so how
is this supposed to work?