diff options
author | José Valim <jose.valim@gmail.com> | 2012-06-29 17:39:50 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-06-29 17:44:10 +0200 |
commit | 5e7d6bba79393de0279917f93b82f3b7b176f4b5 (patch) | |
tree | 1e9c6c8c183ba326efa33087d9b590c9196acec3 /guides | |
parent | 50b6110106a6e467f5e5f6303700522cebc60a9c (diff) | |
download | rails-5e7d6bba79393de0279917f93b82f3b7b176f4b5.tar.gz rails-5e7d6bba79393de0279917f93b82f3b7b176f4b5.tar.bz2 rails-5e7d6bba79393de0279917f93b82f3b7b176f4b5.zip |
Revert "Allow loading external route files from the router"
This reverts commit 6acebb38bc0637bc05c19d87f8767f16ce79189b.
Usage of this feature did not reveal any improvement in existing apps.
Conflicts:
actionpack/lib/action_dispatch/routing/mapper.rb
guides/source/routing.textile
railties/lib/rails/engine.rb
railties/lib/rails/paths.rb
railties/test/paths_test.rb
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/routing.textile | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/guides/source/routing.textile b/guides/source/routing.textile index dae25853cd..4de76ff100 100644 --- a/guides/source/routing.textile +++ b/guides/source/routing.textile @@ -845,24 +845,6 @@ end This will create routing helpers such as +magazine_periodical_ads_url+ and +edit_magazine_periodical_ad_path+. -h3. Breaking Up a Large Route File - -If you have a large route file that you would like to break up into multiple files, you can use the +#draw+ method in your router: - -<ruby> -draw :admin -</ruby> - -Then, create a file called +config/routes/admin.rb+. Name the file the same as the symbol passed to the +draw+ method. You can then use the normal routing DSL inside that file: - -<ruby> -# in config/routes/admin.rb - -namespace :admin do - resources :posts -end -</ruby> - h3. Inspecting and Testing Routes Rails offers facilities for inspecting and testing your routes. |