Ruby on rails Rails路由在生产中中断-缓存routes.rb

Ruby on rails Rails路由在生产中中断-缓存routes.rb,ruby-on-rails,caching,routing,routes,production,Ruby On Rails,Caching,Routing,Routes,Production,更新:原来这个问题是因为我的杂种狗有一半没有重新启动。谢谢大家的帮助 大家好,我有个紧急的问题。基本上,我的路由在本地主机上工作。但当我将其部署到生产环境中时,这些路径似乎无法正常工作 例如,给定一条新路线“/邀请”-有时我会得到404,有时它会正常工作 我怀疑某处正在进行缓存,但我不确定 日志:当找不到页面时(当路由应该是准确的) 处理用户控制器网络 (对于2010年6月1日的67.180.78.126 09:59:31)[获取]参数: {“id”=>“new”} ActionControll

更新:原来这个问题是因为我的杂种狗有一半没有重新启动。谢谢大家的帮助

大家好,我有个紧急的问题。基本上,我的路由在本地主机上工作。但当我将其部署到生产环境中时,这些路径似乎无法正常工作

例如,给定一条新路线“/邀请”-有时我会得到404,有时它会正常工作

我怀疑某处正在进行缓存,但我不确定

日志:当找不到页面时(当路由应该是准确的)

处理用户控制器网络 (对于2010年6月1日的67.180.78.126 09:59:31)[获取]参数: {“id”=>“new”}

ActionController::RoutingError(否 路线匹配 “/comm/role_playing_games”(与{}):
app/controllers/application\u controller.rb:383:in
上一页标签'
app/controllers/application_controller.rb:238:in
log\u timed\u info'
app/controllers/users\u controller.rb:155:in
网络'
app/controllers/users\u controller.rb:151:in
网络“
app/controllers/application\u controller.rb:44:in
打开查询缓存'
app/controllers/application\u controller.rb:43:in
打开查询缓存'
app/controllers/application\u controller.rb:42:in
打开查询缓存'
app/controllers/application\u controller.rb:41:in
打开查询缓存'
app/controllers/application\u controller.rb:40:in
打开查询缓存'
app/controllers/application\u controller.rb:39:in
打开查询缓存haml(3.0.6) lib/sass/plugin/rack.rb:41:in'call'

渲染 /mnt/app/releases/20100524233313/public/404.html (404未找到)


您是否确保重新启动了服务器(如apache、ngix或passenger)? 此外,有时浏览器可以缓存URL,只需关闭浏览器并重新打开,看看是否可以修复


此外,偶尔我会忘记将代码推送到GIT,因此生产服务器无法获得最新的代码。只需检查您的服务器是否确实有代码。

从您发布的内容来看,这肯定不是缓存或路由问题


听起来好像您正试图生成一个链接,指向此人在
ApplicationController
中的上一页,但您发现了一个bug。你必须从
应用程序\u controller.rb

中发布相关代码,因为你没有在一小时内得到答案,所以删除并重新搜索一个问题是不明智的。为什么你删除了先前关于这个问题的问题(2951279),只是为了再问一次?其次,鉴于您提供的堆栈跟踪,断言rails在缓存路由时出错是荒谬的。你的代码显然有问题。我确实重新启动了所有服务器,但问题是我的几个混血儿没有重新启动。谢谢你的帮助!=)