2009-11-27 72 views
1
uninitialized class variable @@configuration in Rails 
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:19:in `configuration' 
/usr/lib/ruby/gems/1.8/gems/thoughtbot-factory_girl-1.2.2/lib/factory_girl.rb:24 
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' 

這是enviroment.rb的初始部分一個未初始化的類變量@@配置:耙分貝:遷移給出滑軌誤差

RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION 

require File.join(File.dirname(__FILE__), 'boot') 

Rails::Initializer.run do |config| 

    config.gem "oauth", :version => "0.2.7", :lib => "oauth" 

回答

0

factory_girl 1.2.2使用Rails 2.1兼容?嘗試使用較新版本的Rails。試試沒有factory_girl。