diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-08-12 19:57:33 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-08-12 19:57:33 -0600 |
commit | c82d2d2676a377125ebf2a56950815054ee15c41 (patch) | |
tree | 19dc67489a5fa067cd0e828bd0b7abd0e0949eaf /railties/lib/rails | |
parent | 32424b6bfbb8bde796d417a907e3e1e9a5d22b76 (diff) | |
parent | 12e5cb5db30f27bab1c44ebff1b3446336305603 (diff) | |
download | rails-c82d2d2676a377125ebf2a56950815054ee15c41.tar.gz rails-c82d2d2676a377125ebf2a56950815054ee15c41.tar.bz2 rails-c82d2d2676a377125ebf2a56950815054ee15c41.zip |
Merge pull request #21021 from sgrif/sg-no-routes-comment
Replace the giant comment in routes.rb with a link to the guides
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/routes.rb | 55 |
1 files changed, 1 insertions, 54 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/routes.rb b/railties/lib/rails/generators/rails/app/templates/config/routes.rb index 3f66539d54..787824f888 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/routes.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/routes.rb @@ -1,56 +1,3 @@ Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end |