aboutsummaryrefslogtreecommitdiffstats
path: root/railties/configs/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/configs/routes.rb')
-rw-r--r--railties/configs/routes.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/configs/routes.rb b/railties/configs/routes.rb
index d94afa1b9d..b579d6c7d1 100644
--- a/railties/configs/routes.rb
+++ b/railties/configs/routes.rb
@@ -17,6 +17,12 @@ ActionController::Routing::Routes.draw do |map|
# Sample resource route with sub-resources:
# map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
+
+ # Sample resource route with more complex sub-resources
+ # map.resources :products do |products|
+ # products.resources :comments
+ # products.resources :sales, :collection => { :recent => :get }
+ # end
# Sample resource route within a namespace:
# map.namespace :admin do |admin|