问题
Out of curiosity. In the docs of rails3 they say that as rule of thumb, I shouldn't nest more than one level of resources. Is there any better way to do that then?
scope "(:locale)", :locale => /pl/ do
resources :users
namespace "admin" do
resources :universities do
resources :faculties
end
end
end
回答1:
Why? You're not nesting more than one level of resources :-)
来源:https://stackoverflow.com/questions/4679699/rails-3-better-routing