Rails 5: Array values in the parameter to `Gem.paths=` are deprecated

匿名 (未验证) 提交于 2019-12-03 02:50:02

问题:

Building websockets app based off of actioncable-examples. When starting server, running rake, etc. I keep getting the message:

Array values in the parameter to `Gem.paths=` are deprecated. 

Haven't seen a solution here, but did find one. I wanted to post the question and answer here so that it's available.

回答1:

I found the answer in RubyGems issue #1551 here. The binstubs, the files in the bin folder, need to be updated. The best way to do this is:

bundle update spring bundle exec spring binstub --remove --all bundle exec spring binstub --all 

And that resolved the problem for me.



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