Prev | Current Page 52 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"


Since Active Record is really just a collection of Ruby code, it stands to reason that you
must first have Ruby correctly installed on your machine. And since Active Record is primarily
distributed as a gem, it should be no surprise that you must also have the Ruby Gem system
correctly installed on your machine. There are many good books and resources that cover the
installation of these requirements, so we won??™t go into the details of these here and will instead
assume that you already have them installed.
?– Note If you are looking for more information on installing Ruby or the Ruby Gem system, two good web
sites full of Ruby resources are http://www.rubycentral.com and http://www.rubyforge.com.
Assuming that you do, in fact, have Ruby and the Ruby Gem system installed correctly on
your machine, installing Active Record requires just three simple steps:
1. Install the Active Record gem.
2. Depending on the database adapter you intend to use, install the required files or libraries.
3. Supply the adapter-specific connection information to make a connection to the database.


Pages:
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64