Redmine 中缺少插值参数错误
通过谷歌搜索,我相信这个错误发生在 Rails Version << 2.3.6. 所以我将环境文件更改为“
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
现在,我有两个问题”。
- 我继续收到 redmine 错误。
- 当我做脚本/服务器时,我得到这个: Rails 2.3.5 应用程序从 http://0.0.0.0:3000 开始
,尽管我已经明确指示它加载 Rails 2.3.8!有什么想法吗?谢谢!
A bit of Googling led me to believe that this error happens in Rails Version < 2.3.6 .
So i changed my environment file to
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
Now, I have 2 questions .
- I continue to get the redmine error.
- When I do a script/server, I get this :
Rails 2.3.5 application starting on http://0.0.0.0:3000
even though I've clearly instructed it to load Rails 2.3.8 ! Any ideas ? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,Redmine 目前仅支持 Rails 2.3.5。任何其他版本(包括 2.3.8)都会导致问题。所以不要使用它们。
您提到的错误是由 i18n gem >= 0.4 引起的。在最近的 1.0 版本中,这个问题应该得到修复。解决方法已提交到 r4183 中的主干,该解决方案已被拉入 1.0 稳定版r4202。因此,更新到最新的 1.0.x 版本(当前版本是 1.0.2)应该可以解决该问题。请参阅 Redmine 问题 #6428 了解更多信息。
另一种可能性是完全删除 i18n gem,因为 Rails 2.3.5 和 Redmine 都不需要它。
At first, Redmine currently supports Rails 2.3.5 only. Any other version (including 2.3.8) will cause issues. So don't use them.
The error you mentioned is caused by the i18n gem >= 0.4. In recent 1.0 releases this issue should be fixed. A workaround was committed to trunk in r4183 which was pulled into 1.0 stable in r4202. So updating to a recent 1.0.x release (current version is 1.0.2) should fix the issue. See the Redmine issue #6428 for more information.
Another possibility would be to just remove the i18n gem completely, as it is not needed by Rails 2.3.5 nor Redmine.