Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Include sub-resources example
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Apr 29, 2007
1 parent 4ef9ad8 commit 6ffa68e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions railties/configs/routes.rb
Expand Up @@ -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.
Expand Down

0 comments on commit 6ffa68e

Please sign in to comment.