aboutsummaryrefslogtreecommitdiffstats
path: root/railties/configs/routes.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-04-29 14:05:34 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-04-29 14:05:34 +0000
commit6ffa68e9ebfc9403bb0454ec3a8d8346a812585e (patch)
treee8efd44afed48490f060a97e8a13d8d6516be17f /railties/configs/routes.rb
parent4ef9ad8653d60295015179f1d366e2d128c53e02 (diff)
downloadrails-6ffa68e9ebfc9403bb0454ec3a8d8346a812585e.tar.gz
rails-6ffa68e9ebfc9403bb0454ec3a8d8346a812585e.tar.bz2
rails-6ffa68e9ebfc9403bb0454ec3a8d8346a812585e.zip
Include sub-resources example
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/configs/routes.rb')
-rw-r--r--railties/configs/routes.rb6
1 files changed, 4 insertions, 2 deletions
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.