Include sub-resources example

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 4ef9ad86
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册