From 6ffa68e9ebfc9403bb0454ec3a8d8346a812585e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 29 Apr 2007 14:05:34 +0000 Subject: Include sub-resources example git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/configs/routes.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'railties/configs/routes.rb') diff --git a/railties/configs/routes.rb b/railties/configs/routes.rb index 1e11b65dae..ee6ff5d3dd 100644 --- a/railties/configs/routes.rb +++ b/railties/configs/routes.rb @@ -15,8 +15,10 @@ ActionController::Routing::Routes.draw do |map| # Sample resource route with options: # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get } - # You can have the root of your site routed with map.root - # -- just remember to delete public/index.html. + # Sample resource route with sub-resources: + # map.resources :products, :has_many => [ :comments, :sales ], :has_ony => :seller + + # You can have the root of your site routed with map.root -- just remember to delete public/index.html. # map.root :controller => "welcome" # Install the default routes as the lowest priority. -- cgit v1.2.3