新的 Ruby on Rails 设置:"'--rc' 的预期字符串默认值;错误(布尔值)" [英] New Ruby on Rails Setup : "Expected string default value for '--rc'; got false (boolean)"
问题描述
我正在新机器(macOS Sierra v.10.12.1)上设置Ruby on Rails Web开发环境.我在这里按照设置说明进行操作:在macOS 10.12 Sierra上设置Ruby On Rails .当我检查新安装的Rails版本时,得到以下信息:
I'm setting up a Ruby on Rails web development environment on a new machine (macOS Sierra v. 10.12.1). I'm following the setup instructions here: Setup Ruby On Rails on macOS 10.12 Sierra. When I check the newly installed rails version, I get the following:
$ rails --version
Expected string default value for '--rc'; got false (boolean)
Rails 4.2.6
我之前没有看过第二行,并且谷歌搜索没有产生任何有用的结果.背景信息:全新安装macOS 10.12.1;通过App Store安装了xcode;按照其主页上的说明安装了Homebrew;通过我提到的第一个链接安装Ruby,Rails等.
I haven't seen that second line before, and googling hasn't yielded any helpful results. Background information: clean install of macOS 10.12.1; installed xcode via the App Store; installed Homebrew via the instructions on its homepage; installing Ruby, Rails, etc. via the first link I mentioned.
有人知道会发生什么吗?
Anyone have any idea what might be going on?
推荐答案
这是由于Thor的最新版本发生了变化. https://github.com/erikhuda/thor/blob/master/CHANGELOG.md#0192-release-2016-11-26 .Rails 5不受影响.您可以忽略有关Rails 4和更早版本的警告.
It's due to a change in the latest version of Thor. https://github.com/erikhuda/thor/blob/master/CHANGELOG.md#0192-release-2016-11-26. Rails 5 is not affected. You can ignore the warning on Rails 4 and earlier.
这篇关于新的 Ruby on Rails 设置:"'--rc' 的预期字符串默认值;错误(布尔值)"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!