This article is excerpted from the book The Rails 3 Way, published by Pearson/Addison-Wesley Professional as part of its Professional Ruby series. Reprinted with ...