Have Rails 2.3.x ignore the i18n gem

こ雲淡風輕ζ 提交于 2019-12-03 07:19:38

I followed instructions as defined here:

http://gembundler.com/rails23.html

and it worked.

You could use Bundler or RVM's Gemsets to make the i18n gem unavailable from within your app. Or you could upgrade your Rails app.

  1. Freeze the rails version: rake VERSION=2.3.5 rails:freeze:gems
  2. Fix the version in the file vendor/rails/activesupport/lib/active_support/vendor.rb line 24 to: gem 'i18n', '>= 0.1.3', '< 0.4.0'
Paolo

Or just edit: /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/vendor.rb

And turn gem 'i18n', '>= 0.1.3'

Into gem 'i18n', '0.1.3'

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!