The Russian Doll Pattern: Mountable apps in Rails 3

Location: Pavilion 2 - 3 Level:
Average rating: ***..
(3.48, 65 ratings)

One of the hottest new features in Rails 3 is the ability to embed a Rails application in another Rails application. This allows the development of components that range from user authentication to a fully featured forum. These components can then be distributed as gems and fully integrated with another application. In fact, user private messaging could be a stand alone app, which is then mounted into a forum app, and finally mounted into your own custom app.

In this talk, Yehuda and Carl will give an in depth tutorial of this new feature. This will be done by building a CMS, creating a gem out of it, and integrating it into another app.

Topics that will be covered include:

  • Providing components that can be integrated in the views of the main app. For example, a list of recent articles for a blog sidebar.
  • Sharing components, such as single sign on, across your enterprise.
  • Packaging the app as a gem.
  • Depending on other mountable apps, such as user authentication.
Photo of Yehuda Katz

Yehuda Katz

Tilde Inc

Yehuda Katz is currently employed by Engine Yard, and works full time as a Core Team Member on the Rails and Merb projects. He is the co-author of jQuery in Action and the upcoming Merb in Action, and is a contributor to Ruby in Practice.

He spends most of his time hacking on Rails and Merb, but also on other Ruby community projects, like Rubinius and Datamapper. And when the solution doesn’t yet exist, he’ll try his hand at creating one – as such, he’s also created projects like Thor and DO.rb.

Photo of Carl Lerche

Carl Lerche

Strobe, Inc

Carl started building web applications at 13 with PHP. He started learning so that he could 1 up his friends who were only building static HTML. Since then, he’s dabbled with quite a few technologies before settling on Ruby 4 years ago. Carl is a software engineer at Engine Yard, a member of the Merb team (currently working on Rails 3), and a contributor to many OSS projects.

Carl likes chocolate, coffee, scuba diving, and long walks on the beach.

Comments on this page are now closed.


Dmitry Ratnikov
05/07/2009 8:22am PDT

While the talk was interesting about introducing the engines, I wish the presentation were more about what is currently available as opposed to what it may look like in future.

News and Coverage
co-presented by Ruby Central, Inc. O'Reilly
  • Engine Yard
  • Heroku
  • Sun Microsystems
  • Blue Box Group
  • New Relic

Sponsorship Opportunities

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

Download the RailsConf Sponsor/Exhibitor Prospectus

Media Partner Opportunities

Download the Media & Promotional Partner Brochure (PDF) for 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 Maureen Jennings at

Contact Us

View a complete list of RailsConf 2009 contacts.