开发者

Rails 3 better routing

Out of curiosity. In the docs of rails3 they say that as rule of thumb, I shouldn't nest more than one le开发者_如何学Govel 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 


Why? You're not nesting more than one level of resources :-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜