Skip to content
Browse files

routes.rb should teach how to use concerns

  • Loading branch information...
1 parent 80036f9 commit 727d0af28cbc3a917afdea8631beac5db3f4ee49 @thejamespinto thejamespinto committed May 1, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 railties/lib/rails/generators/rails/app/templates/config/routes.rb
View
7 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

0 comments on commit 727d0af

Please sign in to comment.
Something went wrong with that request. Please try again.