From: Dennis Crissman Date: 2007-05-24T00:29:58+09:00 Subject: require_gem vs. gem I am confused, can somebody please explain to me the difference between these two calls? I tried some variations below, and the only one that worked was the obsolete require_gem call. ---------- user@vm0_gentoo /my/path $ irb -r rubygems irb(main):001:0> require 'activerecord' LoadError: no such file to load -- activerecord from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from (irb):1 irb(main):002:0> exit ---------- user@vm0_gentoo /my/path $ irb -r rubygems irb(main):001:0> gem 'activerecord' => true irb(main):002:0> ActiveRecord NameError: uninitialized constant ActiveRecord from (irb):2 irb(main):003:0> exit ---------- user@vm0_gentoo /my/path $ irb -r rubygems irb(main):001:0> gem 'activerecord','=1.14.4' => true irb(main):002:0> ActiveRecord NameError: uninitialized constant ActiveRecord from (irb):2 irb(main):003:0> exit ---------- user@vm0_gentoo /my/path $ irb -r rubygems irb(main):001:0> require_gem 'activerecord' (irb):1:Warning: require_gem is obsolete. Use gem instead. => true irb(main):002:0> ActiveRecord => ActiveRecord ---------- Any help you could offer would be appreciated. -- Posted via http://www.ruby-forum.com/.