当我输入
gem list
我看到以下
...
activerecord (3.2.17, 3.2.13)
...
但是当我输入这个
cat >> does_ar_exist.rb
require 'activerecord'
ActiveRecord
ruby does_ar_exist.rb
我收到以下错误:
/Users/xxxxxx/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- activerecord (LoadError)
from /Users/xxxxxx/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require'
有谁知道为什么会这样?
答案 0 :(得分:1)