Validations for non-ActiveRecord Model Objects

Peter Donald
Fri, 02 Dec 2005 15:18:11 -0000

Hi,

I just worked on getting validations for non-ActiveRecord model
objects working. I essentially implemented an ActiveForm object that
you can subclass for your own non-database form objects. The file is
available from my blog [1] and I wouldn''t mind some feedback on
whether my assumptions are right. It seems to work for me and makes it
much easier to write non-database bound forms.

[1]
http://www.realityforge.org/articles/2005/12/02/validations-for-non-activerecord-model-objects

--
Cheers,

Peter Donald