【问题标题】:ActionView::Template::Error (uninitialized constant I18n::RESERVED_KEYS)ActionView::Template::Error(未初始化的常量 I18n::RESERVED_KEYS)
【发布时间】:2014-04-28 16:21:13
【问题描述】:

我正在使用 ruby​​ 1.9.3 运行 rails 3 应用程序。 Heroku 给我一个错误 500 并在 heroku 日志中显示此消息:

在 2014-03-20 08:42:50 +0000 开始为 90.3.47.58 获取“/” 在 176 毫秒内完成 500 个内部服务器错误

<p><%= t('.title_html') %></p>

在布局/应用程序中渲染 store/index.html.erb (96.3ms)

<p id="notice"><%= notice %></p>

ActionView::Template::Error(未初始化的常量 I18n::RESERVED_KEYS):

应用程序在本地运行良好。问题仅出现在生产部署中。 有什么想法吗?

【问题讨论】:

    标签: ruby-on-rails heroku rails-i18n


    【解决方案1】:

    看起来您现在可能必须将 I18n gem 锁定在 0.5.0: https://github.com/svenfuchs/i18n/issues/233

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-26
      • 1970-01-01
      • 2012-04-29
      • 2015-12-29
      • 2023-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多