plataformatec/devise — Issue #1592: authenticate method in routes.rb results in infinite redirects
Author: masterkain
Created: 2012-01-23 23:12:03+00:00
State: open

Hi,
I have this in `routes.rb`:

devise_for :admins, only: :sessions, format: false

authenticate(:admin) do
mount Resque::Server.new, at: "/resque"
end

When trying to access `http://myapp/resque`I get infinite redirects:

00:08:26 web.1 | 127.0.0.1 - - [24/Jan/2012 00:08:26] "GET /unauthenticated HTTP/1.1" 302 - 0.0341
00:08:26 web.1 | 127.0.0.1 - - [24/Jan/2012 00:08:26] "GET /unauthenticated HTTP/1.1" 302 - 0.0301