我有一个申请,这个申请已经有几个月了。最近,我ActionView::MissingTemplate
和Missing template
都收到了很多Missing partial
错误,但问题是,它们似乎或多或少是随机发生的。
我发现重现问题的唯一方法是通过Chrome的Quick Language Switcher插件疯狂地更改浏览器语言。如果我做得足够快,最终其中一个请求返回500.我使用http_accept_language gem来更改网站的区域设置(在application_controller中)。
其他可能的因素:
我不确定如何解决这个问题,这可能与服务器压力有关,因为我们最近获得了更多的流量。
任何提示,想法甚至方向都会受到赞赏。
编辑:
规格:Rails 4.1.5
,ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
Backtrace:http://pastebin.com/nsaxPvAB
错误示例:
ActionView::MissingTemplate: Missing template static_pages/privacy_policy, application/privacy_policy with {:locale=>[:ru, :en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :arb, :haml, :jbuilder]}. Searched in: * "usr_path/releases/20160112094523/app/views" * "usr_path/shared/bundle/ruby/2.1.0/bundler/gems/dark_api-7386deedfd7b/app/views" * "usr_path/shared/bundle/ruby/2.1.0/gems/activeadmin-1.0.0.pre2/app/views" * "usr_path/shared/bundle/ruby/2.1.0/gems/kaminari-0.16.3/app/views" * "usr_path/shared/bundle/ruby/2.1.0/gems/devise-3.4.1/app/views"