What I'm trying to build would require having an admin dashboard for me and a users dashboard for other users. At first I was thinking of using devise and rails_admin to develop this feature, but I'm not sure if it's efficient.
Could I simply use devise and have a model for 'admin', for my own purposes and create an additional model for 'users'? Thank you in advance for possible responses.
Francesco Boffa
I am not a fan of rails_admin. But it really depends on what the users are ought to do.
If your users must use the dashboard to write "posts" for example, rails_admin is an overkill. Writing a controller and some views will take 30 minutes and you can customize them as you wish.
If your users are expected to manage a complex e-commerce application, then maybe you could use rails_admin.
Do use devise. Do not create two models. Have a single User model, with an admin boolean flag.
Control access to the Admin Dashboard with a
before_actionhook in the Base Controller for the Dashboard itself.