• #8 楼 @lgn21st 好的~

  • #5 楼 @ichord 啊~绝对成功启动了,我只对 mysql 熟悉啊。只有 public 目录下面的文件能正常访问,其他的都会 ActiveRecord::ConnectionNotEstablished,然后就是上面的错误 trace。。。T.T

  • #1 楼 @ywencn 我用的 RubyMini ,应该怎么操作。写个 rails 的 hello world 这么难得……

  • #2 楼 @clc3123 页面上的错误是这样的:

    ActiveRecord::ConnectionNotEstablished
    
    ActiveRecord::ConnectionNotEstablished
    
    Rails.root: D:/ruby/hw2
    Application Trace | Framework Trace | Full Trace
    
    activerecord (3.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:409:in `retrieve_connection'
    activerecord (3.1.0) lib/active_record/connection_adapters/abstract/connection_specification.rb:107:in `retrieve_connection'
    activerecord (3.1.0) lib/active_record/connection_adapters/abstract/connection_specification.rb:89:in `connection'
    activerecord (3.1.0) lib/active_record/query_cache.rb:65:in `rescue in call'
    activerecord (3.1.0) lib/active_record/query_cache.rb:59:in `call'
    activerecord (3.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
    actionpack (3.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
    activesupport (3.1.0) lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
    activesupport (3.1.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
    actionpack (3.1.0) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
    actionpack (3.1.0) lib/action_dispatch/middleware/reloader.rb:68:in `call'
    rack (1.3.6) lib/rack/sendfile.rb:101:in `call'
    actionpack (3.1.0) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
    actionpack (3.1.0) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
    railties (3.1.0) lib/rails/rack/logger.rb:13:in `call'
    rack (1.3.6) lib/rack/methodoverride.rb:24:in `call'
    rack (1.3.6) lib/rack/runtime.rb:17:in `call'
    activesupport (3.1.0) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
    rack (1.3.6) lib/rack/lock.rb:15:in `call'
    actionpack (3.1.0) lib/action_dispatch/middleware/static.rb:53:in `call'
    railties (3.1.0) lib/rails/engine.rb:455:in `call'
    railties (3.1.0) lib/rails/rack/content_length.rb:16:in `call'
    railties (3.1.0) lib/rails/rack/log_tailer.rb:14:in `call'
    rack (1.3.6) lib/rack/handler/webrick.rb:59:in `service'
    C:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
    C:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
    C:/Ruby192/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'