Skip to content
Browse files

Include sub-resources example

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4ef9ad8 commit 6ffa68e9ebfc9403bb0454ec3a8d8346a812585e @dhh dhh committed Apr 29, 2007
Showing with 4 additions and 2 deletions.
  1. +4 −2 railties/configs/routes.rb
View
6 railties/configs/routes.rb
@@ -15,8 +15,10 @@
# 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.

0 comments on commit 6ffa68e

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