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
我怎樣才能通過這個錯誤,同時也維護我的嵌套路線。 謝謝。