1
我使用设计,因此不需要用户控制器。但是,我也需要嵌套的路线和我的config.routes看起来像这样;未初始化的恒定UsersController
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
devise_for :users
resources :users do
resources :personal_accounts,path: "user_account", only: [:show] do
resources :deposits, only: [:new, :show, :create, :index]
resources :withdraws, only: [:new, :show, :create, :index]
end
resources :businesses do
resources :business_accounts, path: "business_account", only: [:show] do
resources :business_withdraws, only: [:new, :show, :create, :index]
resources :business_deposits, only: [:new, :show, :create, :index]
end
end
end
我怎样才能通过这个错误,同时也维护我的嵌套路线。 谢谢。