dynamic_forms demo from Ryan Bates' Railscasts