【问题标题】:Why does rails console command freezes at "Switch to inspect mode."?为什么rails控制台命令在“切换到检查模式”处冻结?
【发布时间】:2017-02-23 10:02:37
【问题描述】:

在 Michael Hartl 的 Rails 教程第 2.3.3 节(用户 has_many 微博)中,当我在 Git Bash 中输入 rails console 时:

$ rails console
Loading development environment (Rails 5.0.0.1)
Switch to inspect mode. 

它在Switch to inspect mode. 冻结,直到我输入 Ctrl-C。

我浏览了一些类似/以前的问题,但没有找到我正在寻找的解决方案:

因此,如何绕过Switch to inspect mode. 访问rails console

导轨:5.0.0.1

Rails 教程:第 4 版

Git for Windows:2.9.0.windows.1

操作系统:Windows 7 32 位 Ultimate Service Pack 1

【问题讨论】:

    标签: ruby-on-rails windows railstutorial.org git-bash


    【解决方案1】:

    尝试使用其他控制台:

    • 我的问题出现在“Git Bash”控制台 (MINGW64) 中
    • 使用 'rails 控制台'(Ruby on Rails 的命令提示符)找到的解决方案与 irb 完美配合

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-10
      • 2014-09-12
      • 1970-01-01
      • 1970-01-01
      • 2014-08-25
      相关资源
      最近更新 更多