我有多态的联系模式。我有一个控制器在:admin命名空间,处理不同类型的CRUD。如何做到这一点:联系资源以指向以下控制器:admin namespace?
namespace :admin do
resources :schools do
resources :campuses, :controller => 'schools/campuses' do
resources :contacts # problem controller
end
end
end
祝你好运, Georgi Tapalilov
答案 0 :(得分:0)
尝试:
resources :campuses
namespace :admin do
resources :schools do
resources :campuses, :controller => 'schools/campuses' do
resources :contacts
end
end
end