我想要一个名为“factories.rb”的文件:
require File.join(File.dirname(__FILE__), 'factories.rb' )
并收到此错误:
/home/sean/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems
/custom_require.rb:36:in `require': cannot load such file -- /home/sean/rand/test/factories.rb (LoadError)
我安装了 ruby-1.9.3-p194。为什么在错误信息中还说 1.9.1?