还是在 windows 上,最后可以了,只是我中间装过 devkit,然后缺的的 gem 包也都一一 gem install xxx 了
控制台执行 rake db:migrate 后出现这样的错误
rake aborted!
Unrecognized --trace option 'race'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:508:in se
lect_trace_output'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:466:in
st
andard_rake_options'
C:/Ruby187/lib/ruby/1.8/optparse.rb:1298:in call'
C:/Ruby187/lib/ruby/1.8/optparse.rb:1298:in
parse_in_order'
C:/Ruby187/lib/ruby/1.8/optparse.rb:1254:in catch'
C:/Ruby187/lib/ruby/1.8/optparse.rb:1254:in
parse_in_order'
C:/Ruby187/lib/ruby/1.8/optparse.rb:1248:in order!'
C:/Ruby187/lib/ruby/1.8/optparse.rb:1339:in
permute!'
C:/Ruby187/lib/ruby/1.8/optparse.rb:1360:in parse!'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:518:in
ha
ndle_options'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:81:in ini
t'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in
st
andard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:79:in ini
t'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:71:in
run
'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in st
andard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:70:in
run
'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-10.0.3/bin/rake:33
C:/Ruby187/bin/rake:23:in `load'
C:/Ruby187/bin/rake:23
1 楼的意思是,用 sql 语句自己创建数据库表?
数据库连接是正确的