Monthly Archives: January 2009

Pictures from Monterey & Pt. Lobos

Check out pictures from diving in Monterey and Pt. Lobos.

Automatically generate in_place_editor_for

Recently, I was creating some in_place_editors for a polymorphic controller I’m working on. Although the problems not particular to polymorphic controllers, I didn’t want to embed too much model information within the controller. I came up with a way to use meathod_missing to define the in_place_editor_for on demand: