From 727d0af28cbc3a917afdea8631beac5db3f4ee49 Mon Sep 17 00:00:00 2001 From: Thiago Pinto Date: Wed, 1 May 2013 00:11:43 -0400 Subject: routes.rb should teach how to use concerns --- railties/lib/rails/generators/rails/app/templates/config/routes.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'railties/lib') 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 f877fa1f8a..1794ffa833 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/routes.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/routes.rb @@ -39,6 +39,13 @@ # 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 -- cgit v1.2.3