Active admin and Devise in the application

1

In this app I'm working I use active admin and in the application I use Devise. Both use it for login.

When I logged out from / admin I'm redirected to the end user's main screen which starts with a login screen.

The issue is that when trying to access / admin again I'm redirected to this end user login screen and will not let me access the admin screen until I log in as an end user. When I log in as user I can access the / admin screen and then I enter login and admin password and I get access.

In the terminal log when accessing / admin returns me:

Started GET "/admin/login" for 127.0.0.1 at 2014-03-15 03:05:07 -0300
Processing by ActiveAdmin::Devise::SessionsController#new as HTML
Completed 401 Unauthorized in 2ms
    
asked by anonymous 15.03.2014 / 07:20

1 answer

1

After some restarts in my app it magically came back up and running. Still a strange bug.

I searched and found this issue that talks about it, in case something like this happens someday:

link

    
15.03.2014 / 07:36