Give Resque route a name and use that for the iframe src

Closes #1350
This commit is contained in:
Robert Speicher 2012-08-31 19:28:32 -04:00
parent ed954ebae2
commit 0de5d08e37
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
%h3 Resque
%iframe{src: "/info/resque", width: 1168, height: 600, style: "border: none"}
%iframe{src: resque_url, width: 1168, height: 600, style: "border: none"}

View file

@ -10,7 +10,7 @@ Gitlab::Application.routes.draw do
# Optionally, enable Resque here
require 'resque/server'
mount Resque::Server.new, at: '/info/resque'
mount Resque::Server.new, at: '/info/resque', as: 'resque'
# Enable Grack support
mount Grack::Bundle.new({