Prev | Current Page 416 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"


Active Record is distributed as a Ruby gem, so hopefully, it seems pretty obvious that its
source code is stored within your Ruby gems??™ folder structure. The exact location of this folder
depends on where you have installed Ruby and, to a lesser extent, on what version of Ruby Gem
you are running. In most cases, though, once you??™ve located your root Ruby directory (we??™ll
refer to that location as YourRubyRoot in this chapter), the Active Record source files are found
in the following location:
YourRubyRoot\lib\ruby\gems\1.8\gems\activerecord-1.15.3\lib
?– Note The 1.8 in the path refers to the specific version of Ruby gems we are running, and
activerecord-1.15.3 refers to the specific version of Active Record we have installed. These values
may vary slightly depending on the version you are running. Browsing the directory at the locations specified
in the path should make the correct values obvious for your specific situation.
Following the Code Trail
Now that you know where all the Active Record source code is physically located, we can start
working our way through it.


Pages:
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428