[Rails] routes friendly URL's

2010-11-30 Thread andyl
I have a Rails3 app with three resources: - League (has_many :teams) - Team (belongs_to :league, has_many :players) - Player (belongs_to :team) With standard nested routes, I get URLs like: /leagues (lists all leagues) /leagues/2(shows league #2) /leagues/2/teams (lists all

Re: [Rails] routes friendly URL's

2010-11-30 Thread Brian Troutwine
On Tue, Nov 30, 2010 at 11:26 AM, andyl akl...@gmail.com wrote: I have a Rails3 app with three resources: - League (has_many :teams) - Team (belongs_to :league, has_many :players) - Player (belongs_to :team) With standard nested routes, I get URLs like: /leagues          (lists all