Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [b2c2b0ce459a215d389f3ab8bb9e33718460cf51] by José Valim

Revision b2c2b0ce459a215d389f3ab8bb9e33718460cf51, committed by José Valim · March 26th, 2010 @ 02:51 PM

Rails router automatically calculated for you the controller and named routes in the following scenarios:

match "home/about" #=> maps to home#about with named route home_about_path match "about" #=> does not work because it cannot guess the controller match "about" => "home#about" #=> maps to home#about with named route home_about_path match "home/about", :as => "about" #=> maps to home#about with named route about_path http://github.com/rails/rails/commit/b2c2b0ce459a215d389f3ab8bb9e33...

2 changed files

  • M actionpack/lib/action_dispatch/routing/mapper.rb
  • M actionpack/test/dispatch/routing_test.rb