I have a User controller and related views for index,update, etc. The project specifications changed, and now we have a custom Dashboard controller and related index page, accessed by localhost:3000/dashboard
match 'dashboard' => 'dashboard#index', as: 'dashboard'
The Dashboard index page will act similar to the (old) User index page, and so I am thinking I can simply re-use the User controller actions.
How can I simply "nest" the User into Dashboard, to achieve routes like localhost:3000/dashboard/users/new or localhost:3000/dashboard/users/1/edit?
Note that the Dashboard controller does not have an associated model, it is a custom one just to create a customized homepage depending on the person viewing the Rails app. It will have other functionality unrelated to Users.
I tried
match 'dashboard' => 'dashboard#index', as: 'dashboard' do
resources :users do
member do
#more custom actions
end
collection do
#more custom actions
end
end
end