Apress

Pro Active Record

Databases with Ruby and Rails

By Chad Pytel , Jon Yurek , Kevin Marshall

Pro Active Record Cover Image

In Pro Active Record, authors Kevin Marshall, Chad Pytel, and Jon Yurek walk you through every step, from the basics of installing the ActiveRecord library to working with legacy schema. You'll come to a deep understanding of ActiveRecord that will enable you to truly exploit all that Ruby, Rails, and your chosen database platform have to offer.

Full Description

  • ISBN13: 978-1-59059-847-4
  • 304 Pages
  • User Level: Beginner to Advanced
  • Publication Date: September 13, 2007
  • Available eBook Formats: PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Pro Active Record helps you take advantage of the full power of your database engine from within your Ruby programs and Rails applications. ActiveRecord, part of the magic that makes the Rails framework so powerful and easy to use, is the model element of the Rails Model-View-Controller framework. It's an object-relational mapping library enabling you to interact with databases from both Ruby and Rails applications.

Because ActiveRecord is configured with default assumptions that mesh perfectly with the Rails framework, Rails developers often find they hardly need think about it at all. However, if you are developing in Ruby without Rails, or are deploying against legacy databases designed without Rails in mind, or you just want to take advantage of database-specific features such as large objects and stored procedures, you need the in-depth knowledge of ActiveRecord found in this book.

In Pro Active Record, authors Kevin Marshall, Chad Pytel, and Jon Yurek walk you through every step from the basics of getting and installing the ActiveRecord library to working with legacy schema to using features specific to each of todays most popular database engines, including Oracle, MS SQL, MySQL, and more! You’ll come to a deep understanding of ActiveRecord that will enable you to truly exploit all that Ruby, Rails, and your chosen database platform have to offer.

Table of Contents

Table of Contents

  1. Introducing Active Record
  2. Active Record and SQL
  3. Setting Up Your Database
  4. Core Features of Active Record
  5. Bonus Features
  6. Active Record Testing and Debugging
  7. Working with Legacy Schema
  8. Active Record and the Real World
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

On page 18:
require_gem rejected by Ruby 1.9.2