Search code examples
ruby-on-railsruby-on-rails-5

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


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.


Solution

  • 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.