Have Rails 2.3.x ignore the i18n gem

后端 未结 4 726
慢半拍i
慢半拍i 2021-02-08 10:11

I have a Rails 2.3.5 project that uses the localization features of Rails. I also happen to have Rails 3 beta installed (which depends on the i18n gem). Rails 2.3.5 will happily

相关标签:
4条回答
  • 2021-02-08 10:39

    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.

    0 讨论(0)
  • 2021-02-08 10:40

    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'

    0 讨论(0)
  • 2021-02-08 10:47
    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'
    0 讨论(0)
  • 2021-02-08 10:51

    I followed instructions as defined here:

    http://gembundler.com/rails23.html

    and it worked.

    0 讨论(0)
提交回复
热议问题