2011-07-24 78 views
0

我最近升級了我的gemfile,試圖讓Rails 3.1與Jruby 3.1一起工作。JRuby 1.6.3升級到Rails 3.1已經破壞遷移

這裏是我的Gemfile:

源 'http://rubygems.org' 源 'http://gems.engineyard.com'

gem 'rails',    '~> 3.1.0.rc4' 
gem 'sass-rails' 
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31' 
gem 'fancy-buttons' 
gem 'haml' 
gem 'authlogic', :git => 'https://github.com/AndreasWurm/authlogic.git'#, :branch => 'rails3' 
gem 'nokogiri' 
gem 'bundler' 
gem 'resque'    
gem 'resque-meta'   
gem 'jquery-rails'  
gem 'rake'#, '~> 0.8.7'   
gem 'eventmachine' 
gem 'em-websocket' 
gem 'json' 
gem 'coffee-script' 
gem 'uglifier' 

platforms :jruby do 
    gem 'activerecord-jdbc-adapter' 
    gem 'activerecord-jdbcsqlite3-adapter' 
    gem 'jruby-openssl' 
    gem 'jdbc-mysql' 
    gem 'jruby-rack' 
    gem 'warbler' 
    #gem 'glassfish', '1.0.3.dev' 
end 

group :test, :development do 
    platforms :jruby do 
    gem 'jdbc-sqlite3', :require => false 
    gem 'fastercsv' 
    gem 'ruby-debug' 
    end 

    platforms :ruby do 
    gem 'sqlite3-ruby', :require => 'sqlite3' 
    end 

    gem 'mocha' 
    gem 'factory_girl' 
    gem 'fakeweb' 
    gem 'shoulda', :require => 'shoulda' 
end 

的問題是,當我運行耙分貝:遷移,我收到以下錯誤信息:

耙中止!發生了錯誤,這和所有後來遷移 取消:對無

未定義的方法`行:NilClass

有其他人遇到此。

回答

0

升級到軌道5使我的移民來自的JRuby 1.6.3反正建:

源 'http://rubygems.org' 源 'http://gems.engineyard.com'

gem 'rails',    '~> 3.1.0.rc5' 
gem 'sass-rails' 
gem 'compass', git: 'https://github.com/chriseppstein/compass.git',branch: 'rails31' 
gem 'fancy-buttons' 
gem 'haml' 
gem 'authlogic', :git => 'https://github.com/AndreasWurm/authlogic.git'#, :branch => 'rails3' 
gem 'nokogiri' 
gem 'bundler' 
gem 'resque'    
gem 'resque-meta'   
gem 'jquery-rails'  
gem 'rake'#, '~> 0.8.7'   
gem 'eventmachine' 
gem 'em-websocket' 
gem 'json' 
gem 'coffee-script' 
gem 'uglifier' 

platforms :jruby do 
    gem 'activerecord-jdbc-adapter' 
    gem 'activerecord-jdbcsqlite3-adapter' 
    gem 'jruby-openssl' 
    gem 'jdbc-mysql' 
    gem 'jruby-rack' 
    gem 'warbler' 
    #gem 'glassfish', '1.0.3.dev' 
end