Ruby & Mysql

Please note this is not a ruby on rails question - which most of the ruby posts seem to have been so far. Has anyone been able to connect to mysql with Ruby? I saw a couple examples online but all blew up when I tried to require ‘mysql’ or require ‘Mysql’ - so I was thinking most likely the mysql module wasnt loaded. But if this is the case, how does ruby on rails work?