Update: The internal Preloader class has changed between Rails 3 and Rails 4. The code examples have been updated to reflect that.ActiveRecord has some great utilities for eager loading associations to solve the N+1 query problem. Take, for example, the following code to print a list of sellers'