diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-26 15:41:05 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-26 15:51:51 +0100 |
commit | b2c2b0ce459a215d389f3ab8bb9e33718460cf51 (patch) | |
tree | 8215d6ec113d603c9194de9ac619db17970b09a5 /railties/lib | |
parent | f5ee855f439feb7958504dc1d8e62aad4da5fac6 (diff) | |
download | rails-b2c2b0ce459a215d389f3ab8bb9e33718460cf51.tar.gz rails-b2c2b0ce459a215d389f3ab8bb9e33718460cf51.tar.bz2 rails-b2c2b0ce459a215d389f3ab8bb9e33718460cf51.zip |
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
Diffstat (limited to 'railties/lib')
0 files changed, 0 insertions, 0 deletions