我以前曾經使用rails 2.3.2,然後決定升級到2.3.4版本。無法在rails上生成遷移2.3.4
今天我試圖產生遷移(我能做到這一點罰款與2.3.2版本),我得到了以下錯誤消息:
C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:812:in `const_missing': uninitialized constant ActiveSupport (NameError)
from D:/Proyectos/Cursometro/www/config/environment.rb:33
from C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:111:in `run'
from D:/Proyectos/Cursometro/www/config/environment.rb:15
from D:/Proyectos/Cursometro/www/config/environment.rb:31:in `require'
from C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/generate.rb:1
from C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/generate.rb:31:in `require'
from C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script\generate:3
我不知道爲什麼會這樣。在2.3.2中一切正常,現在不行。
我一直有使用Netbeans從一個版本的rails遷移出現問題。順便說一句,你在Ruby或Jruby上工作嗎? – Snehal 2010-05-26 21:03:56
內置JRuby 1.4.0 – 2010-05-27 12:50:09