In my rails application I have two trees that are identical but mounted in two points:
resources :organizations do
large_routing_tree
resources :projects do
large_routing_tree
end
end
The large_routing_tree includes around 10 resources with nesting.
Is there a better way to do this than co开发者_StackOverflow社区py-pasting the routes?
I mean
resources :organizations do
resources :projects, :shallow => true do
large_routing_tree
end
end
精彩评论