Can Active Admin use my current Devise user model? It already has a column named admin, and if it’s true, I’d like to bypass the Active admin login, when going to /admin.
Is this possible?
Current routes:
#Active admin
ActiveAdmin.routes(self)
#Devise
devise_for :admin_users, ActiveAdmin::Devise.config
devise_for :users, :path => "account"
The rest is basically standard Devise + Active admin
Yes you can do that, when running the generator skip the user model creation:
Then in your
config/initializers/active_admin.rb:uncomment
config.authentication_methodand provide your authentication method for your admin, for example:Restart your server and It should be working. Also Take a look to Active Admin Configuration
Hope this helps.