I'm using resque web front end to manage my background jobs. I'm wondering if someone know how I can embed this front end inside my main layout. I want to use my application layout and keep my html header.
我正在使用resque web前端来管理我的后台工作。我想知道是否有人知道如何将这个前端嵌入我的主要布局中。我想使用我的应用程序布局并保留我的html标题。
I'm actually mount resque as a Rails rack.
我实际上将resque挂载为Rails机架。
mount Resque::Server.new, :at => "/resque"
1 个解决方案
#1
0
In the resque Gem
在resm宝石
resque / lib / resque / server /
There is a view and public folder you could directly modify them or These views files are used by a sinatra app which is called in
有一个视图和公共文件夹,你可以直接修改它们或这些视图文件由一个被调用的sinatra应用程序使用
resque/lib/resque/server.rb
You could monkey patch that Server class(Sinatra App) to use your own views.
您可以使用自己的视图来修补Server类(Sinatra App)。
#1
0
In the resque Gem
在resm宝石
resque / lib / resque / server /
There is a view and public folder you could directly modify them or These views files are used by a sinatra app which is called in
有一个视图和公共文件夹,你可以直接修改它们或这些视图文件由一个被调用的sinatra应用程序使用
resque/lib/resque/server.rb
You could monkey patch that Server class(Sinatra App) to use your own views.
您可以使用自己的视图来修补Server类(Sinatra App)。