mirror of
https://github.com/github/rails.git
synced 2026-01-30 08:48:06 -05:00
Include sub-resources example
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user