Chapter 9. Advanced ActiveRecord

ActiveRecord is a simple object-relational mapping (ORM) framework compared to other popular ORM frameworks, such as Hibernate in the Java world. Don’t let that fool you, though: Under its modest exterior, ActiveRecord has some pretty advanced features. To really get the most effectiveness out of Rails development, you need to have more than a basic understanding of ActiveRecord—things like knowing when to break out of the one-table/one-class pattern, or how to leverage Ruby modules to keep your code clean and free of duplication.

In this chapter, we wrap up this book’s comprehensive coverage of ActiveRecord by reviewing callbacks, observers, single-table inheritance (STI), and polymorphic models. ...

Get The Rails Way now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.