Rails 2.3 + Rails 3 + Authlogic + I18n

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'

你可能感兴趣的:(C++,c,vim,rubygems,Rails)