April 2011

April 19, 2011

6:00 - 7:30 PM



One of the big themes of Rails 3 was making the entire Rails framework more modular. A perfect example of this is ActiveModel which is actually a group of modules extracted from ActiveRecord. ActiveModel provides an API through which Rails interacts with models, so any ORM that implements the ActiveModel API will automatically work with Rails. ActiveModel also exposes a lot of useful functionality like validation, callbacks, serialization (to_xml, to_json, etc), and i18n support.

We'll take a look at ActiveModel and see how it can be used to provide this kind of functionality to ordinary Ruby objects independently of whether they are persisted in a SQL database.

This topic should appeal to Rubyists of all experience levels. For beginners, we'll cover the basics of Ruby modules. Then we'll move on to intermediate topics like how to use ActiveModel outside of a Rails project and how to verify whether a Ruby object is AciveModel-compliant. We'll also spend a little time looking at how ActiveModel is actually implemented.

There will be plenty of time for discussion and questions.

Meeting Location

Foundry Coworking
1312 Locust, Suite 204
Des Moines, Iowa, 50309

Downtown across from the world-class Pappajohn Sculpture Garden.

Wi-fi Internet access is available.

Click here for a map.

Dinner After the Meeting

If you can, please plan to join us for dinner at a local restaurant after the meeting.