无法启动rails控制台。当我尝试启动时,我收到了以下消息:Rails控制台 - 进程完成退出代码0
Loading development environment (Rails 3.2.12)
Process finished with exit code 0
它退出时没有任何错误。但轨服务器启动没有问题:
=> Booting WEBrick
=> Rails 3.2.12 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-04-26 02:23:44] INFO WEBrick 1.3.1
[2013-04-26 02:23:44] INFO ruby 1.9.3 (2013-02-22) [x86_64-darwin12.2.0]
[2013-04-26 02:23:44] INFO WEBrick::HTTPServer#start: pid=2393 port=3000
我正在运行Mac OS X rvm。 为什么rails控制台可能不工作?
当您运行'ruby script/rails console'而不是'rails console'时会发生什么? – Subhas 2013-06-04 17:25:04
Nothing 'bash-3.2 $ ruby script/rails console' '加载开发环境(Rails 3.2.12)' 'bash-3.2 $' – 2013-06-04 19:29:27
如果从终端运行'irb',会发生什么?另外,轨道控制台运行在新的rails应用程序?尝试运行'rails new some_app',然后运行'rails c'。 – kwyoung11 2013-06-05 22:00:53