I have different user types going to different dashboard pages using a
get "owner", to: 'static_pages#admin' get "superadmin", to: 'static_pages#admin' get "admin", to: 'static_pages#admin' get "teacher", to: 'static_pages#teacher' get "family", to: 'static_pages#family'
This is primarily for the neatness of URLs. Admin users see
I’m using Devise for authentication but I’m managing users within the app with a CRUD interface so I’ve added the user resources to my routes:
resources :admins resources :teachers resources :families
This was all working fine until I added the admin resources. Now my
admin_path fails because it looks for a
#show action in the
I’m not sure why the teacher and family routes didn’t fail too?