Meaning of “Expected string default value for …” on Ruby on Rails

爱⌒轻易说出口 提交于 2019-11-28 10:44:40

This happened to me with Rails 5.0.0.1 and ruby 2.2.0 when I performed a bundle update. It has nothing to do with either Rails or Ruby, but was instead caused by the upgrade of the thor gem (which is a dependency of jquery-rails, among others) from 0.19.1 to 0.19.4.

Downgrading to 0.19.3 didn't fix it. 0.19.2 threw other errors. Downgrading to 0.19.1 finally fixed it.

So adding this to your Gemfile:

gem 'thor', '0.19.1'

and running bundle update thor should get rid of this until the thor maintainers can address this. (Update: Github issue)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!