I am using delayed_job_web stone to track pending jobs. https://github.com/ejschmitt/delayed_job_web
Accessible via this line on my routes. rb:
match "/delayed_job" => DelayedJobWeb, :anchor => false
Every other area of my site requires a login using the Devise gem. How do I do this, also need to log in?
In readme, they suggest adding the following to config.rb:
if Rails.env.production? DelayedJobWeb.use Rack::Auth::Basic do |username, password| username == 'username' password == 'password' end end
But it just uses authentication with a regular text browser.
UPDATE: I tried something similar to railscast on resque, and I think it is on the verge of work, but now it gives me a redirect loop:
authenticate :admin do mount DelayedJobWeb, :at => "/delayed_job" end
Any thoughts on why it should give a redirect loop?
Thanks,
Ira Herman
source share