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