From: Gray Bowman Date: 2007-06-30T07:16:19+09:00 Subject: Re: Active Record not found Jan Friedrich wrote: > activerecord != active_record ;) > > To require gems you need also to require rubygems: > > require 'rubygems' > require 'active_record' So I guess I'm really confused then. This is my final code: require 'net/http' require 'active_record' ActiveRecord::Base.establish_connection( :adapter => 'mysql', :host => 'localhost', :username => 'root', :password => '', :database => 'app_development') class Thing < ActiveRecord::Base end This works in IRB, and on the command line. I'm happy now, but still wondering... I didn't have to "require 'rubygems'" for this to work, why? Isn't ActiveRecord a gem? And if so, shouldn't I have to use "gem 'active_record'" instead? Also, if there wasn't an error on the _old_ line "require 'activerecord'" then ruby found something by that name ... what was it? Finally, and this is where you can really help me: Where can I find this info in the documentation. I've looked in the core reference, the standard lib reference, and read the whole ActiveRecord section and found nothing telling me how the _right_ way to include this was, what I found was different people doing it different ways, none of which worked for me. -- Posted via http://www.ruby-forum.com/.