请求-网页路径不工作



我刚刚升级到rails 3.1,并得到一个奇怪的路由问题与resque-web

我已经在我的路由上安装了救生网。像这样:

mount Resque::Server, :at => "/resque"

当我的服务器上升到0.0.0.0:5000/resque工作正常,但声明路径'resque_path'在我的erb.html文件给我

undefined local variable or method `resque_path' for #<#<Class:0x000001038e9eb0>:0x000001038a7650>

它甚至在我的rake路线上被列为:

resque_server        /resque                     {:to=>Resque::Server}

'resque_path'应该正常工作!我不知道为什么是现在。有人知道吗?

如果你检查rake路由,你可以看到解决方案是:

resque_web_path

您试过resque_server_path吗?可以了

最新更新