2

当我尝试启动 Rails 服务器时,会出现此错误

C:\Arthur\Ruby\Aplicações em ruby\blog>rails server
=> Booting WEBrick
=> Rails 3.2.6 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
C:/Arthur/Ruby/Aplicações em ruby/blog/config.ru:4:in `require': cannot load such file --
C:/Arthur/Ruby/Aplicações em ruby/blog/config/environment (LoadError)
    from C:/Arthur/Ruby/Aplicações em ruby/blog/config.ru:4:in `block in <main>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `ins
tance_eval'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `ini
tialize'
    from C:/Arthur/Ruby/Aplicações em ruby/blog/config.ru:1:in `new'
    from C:/Arthur/Ruby/Aplicações em ruby/blog/config.ru:1:in `<main>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eva
l'
.
.
.

我需要做什么才能在 Rails 上使用 ruby​​ ???

4

1 回答 1

3

我想建议您在目录中创建您的应用程序,其中路径只有英文符号。Ruby 可能无法理解像“Aplicações em ruby​​”这样的符号

于 2012-06-27T16:28:50.583 回答