Prev | Current Page 53 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"


Let??™s look at each of these steps in a little more detail. When we??™re finished with this
chapter, you??™ll have Active Record fully installed, and you??™ll be ready to dive into coding!
Installing the Active Record Gem
You are probably already familiar with the idea of Ruby Gems??”a simple system for packaging,
distributing, and installing various Ruby libraries. You??™re probably also already aware that
www.rubyforge.com is the default remote gem distribution site. So it should be no surprise to
learn that Active Record is, in fact, a gem available through the RubyForge.com system and
that the most basic command to install the Active Record gem is to simply type gem install
activerecord at a command line. The gem system should then walk you through any additional
steps that are required for installing the library, including installing the Active Support
library, which is a Ruby requirement for Active Record.
CHAPTER 1 ?–  INTRODUCING ACTIVE RECORD 8
?– Note If you prefer, you can download the Active Record library for local installation from www.


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