`
wuhuizhong
  • 浏览: 668795 次
  • 性别: Icon_minigender_1
  • 来自: 中山
社区版块
存档分类
最新评论

Rails 2.3 + Rails 3 + Authlogic + I18n

    博客分类:
  • ROR
阅读更多

If you are using Rails 2.3 Rails 3 Authlogic I18n error wrong number of arguments (4 for 3) (ArgumentError), in consequence of the fact that Rails 3 require I18n> = 0.3.6 version, and Authlogic works with earlier versions of I18n.

One solution to preload the application on Rails 2.3 older version I18n, which will be compatible with Authlogic.

 

問題解決:

方法1:
The process is to create the file config / preinitializer.rb c code download the required version of us:

require 'rubygems'

gem' i18n ', '0 .2.1'

Do not forget to install the appropriate version of the heme: gem install i18n - version = 0.2.1

 

方法2:

Workaround:
rake VERSION=2.3.5 rails:freeze:gems
vim vendor/rails/activesupport/lib/active_support/vendor.rb

gem 'i18n', '>= 0.1.3', '< 0.4.0'

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics