From: Michael Satterwhite Date: 2006-08-09T00:24:22+09:00 Subject: Re: require 'mysql' is failing OK, Ben. You're another one I owe a lunch if you're ever in the area of Houston, TX. Ben Bleything wrote: >> Is the require 'rubygems' ... the correct construct? Is it going to work >> in rails? > > Yes, it's correct. In order to include a gem, you have to include > rubygems. You don't necessarily need to use require_gem (plain require > should work so long as you've already require'd rubygems) but it can be > helpful to remember what's a gem and what isn't. > > As for rails, you shouldn't need to include it explicitly. I'm not sure > exactly how it all works internally, but if your database.yml is set up > to use mysql, it will automatically require the gem. I believe that > Rails simply require's whatever the adapter string is, but again, I'm > not sure. OK, things are falling into place now. Thanks. > > Really, though, it's not that bad to just require rubygems, is it? ;) Not at all - now that I realize I need to. >> I'm really trying to learn this so I don't have to keep bugging the >> people here. I also want to thank all of you for the help you've given. >> I appreciate this community more than you know. > > Everyone starts somewhere :) The Ruby community is the nicest I've ever > known. Bring your questions, they're always welcome and someone will > answer. And I want to thank you - and everyone else here. You've got me past some major hurdles. I appreciate it much. ---Michael -- Posted via http://www.ruby-forum.com/.