在我的炼油厂扩展中,我有一个国会模型,它是扩展的“主要”模型。另外,我有一个嵌套在 Congress 路线中的住宿模型,如下所示:
namespace :admin do
resources :congresses do
resources :accommodations
as_routes
end
end
当我尝试通过其新操作创建新住宿时,我得到:
Processing by Refinery::Admin::AccommodationsController#new as HTML
'admin' tried to access 'refinery/admin/accommodations' but was rejected.
Filter chain halted as :restrict_controller rendered or redirected
有人知道发生了什么吗?住宿新行动呼吁国会意见,这有关系吗?