1.9.2 兼容模式下的 jruby 1.6.3 是否可以与 Rails 2.3.11 一起使用?意思是有人尝试过吗?
我们正在使用 jruby 1.6.x,由于 UTF8 支持,我们希望切换到 1.9 模式。但是,我们不想将 Rails 从 2.3.8/2.3.11 升级到 Rails 3。
We are using jruby 1.6.x and we would like to switch to 1.9 mode because of UTF8 support. However, we don't want to upgrade rails from 2.3.8/2.3.11 to rails 3.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我尝试首先将 Rails 2.3 应用程序升级到 ruby 1.9.3。存在各种与 utf8 相关的问题。其中一些问题可以通过在文件中放入 utf8 标头来轻松修复,但有些问题仅在特殊情况下才会出现,例如,当错误消息是由 Rails 堆栈深处某处的不同部分构建时,其中一个部分是ascii,另一个utf8。
当我调查问题时,我发现其他问题也有不同类型的 utf8 问题。
所以先升级到 Rails 3.0 然后再升级到 ruby 1.9 会更容易
I tried to upgrade a Rails 2.3 application first to ruby 1.9.3. There were all kind of utf8-related problems. Some of them you can fix easily, by putting a utf8 header in the file, but some of the problems occur only in special conditions, for example when an error message is constructed from different parts somewhere deep in the rails stack, an one part was ascii, the other utf8.
When I investigated the problems I found other have also different kind of utf8 problems.
So it easier to go first to rails 3.0 and then to ruby 1.9