Rails 开始时:“split_gem_path”:未定义的方法“split”

Rails on start: `split_gem_path': undefined method `split'

我是 运行 Rails 4.2.4,正在使用 RVM。从 rails s:

开始时出现以下错误
/home/drew/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/path_support.rb:50:in `split_gem_path': undefined method `split' for #<Array:0x00000000dc2dc8> (NoMethodError)
  from /home/drew/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/path_support.rb:32:in `initialize'
  from /home/drew/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems.rb:351:in `new'
  from /home/drew/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems.rb:351:in `paths='
  from /data/code/ruby/milligram/bin/spring:11:in `<top (required)>'
  from bin/rails:3:in `load'
  from bin/rails:3:in `<main>'

我通过使用以下命令启动 rails 解决了这个问题: bundle exec spring rails s