Building a Composite Model in Active Record

Location: E145 - E146 Level: Expert
Average rating: **...
(2.30, 10 ratings)

The session starts with a quick overview of the technique used to create a class that acts like an Active Record Model class, while not inheriting from ActiveRecord::Base.

This is followed by a code review of the results of applying the technique. Particular attention is paid to handling query conditions, and rewriting/remapping sql table references.

The session wraps up with lesions learned in the exercise.

A secondary benefit of the session for newer developers is to demonstrate techniques and willingness to deal with Rails source and internals.

Photo of Michael Latta

Michael Latta


I have 32 years industry experience; 8 of it in Smalltalk, and 25 in Objects of various kinds. I have worked on most aspects of the tool chain from compilers to SCM systems, and high end engineering modeling tools to financial modeling tools. I am on my third startup, and glad to be back into the Smalltalk/Ruby family of languages.

News and Coverage
co-presented by Ruby Central, Inc. O'Reilly
  • Engine Yard
  • Sun Microsystems
  • FiveRuns
  • GotThingsDone
  • Heroku
  • ThoughtWorks
  • Atlantic Dominion Solutions
  • Blue Box Group
  • CodeGear
  • E-xact
  • ELC Technologies
  • EnterpriseDB
  • GemStone Systems
  • Intridea
  • Morph Labs
  • RightScale
  • TechRepublic

Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at RailsConf, contact Yvonne Romaine.

Download the RailsConf Sponsor/Exhibitor Prospectus

Media and Promotional Opportunities

Download the Media & Promotional Partner Brochure (PDF) for more information on trade opportunities with O'Reilly conferences, or contact mediapartners@

Program Ideas

Post your suggestions for speakers, topics, and activities on the RailsConf wiki or send an email to

Press and Media

For media-related inquiries, contact

Contact Us

View a complete list of RailsConf 2008 contacts.