开发者

Rails 3 better routing

开发者 https://www.devze.com 2023-02-04 17:46 出处:网络
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?

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

精彩评论

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