Displaying 2 results from an estimated 2 matches for "activevalid".
Did you mean:
activecallid
2006 Apr 17
0
Validation schemes for model objects that are not yet saved
All,
I have a model object that I do a bunch of stuff to before I want to
save it to the database. Actually, to be more specific, I do a lot of
validation that is related to one attribute on this model. I would like
to do some validation on it but take advantage of something akin to
ActiveValidation.
I''ve read through this
http://www.ruby-forum.com/topic/1689#1210
which referenced this:
http://www.realityforge.org/articles/2005/12/02/validations-for-non-activerecord-model-objects
and I just wondered if anyone had come up with another scheme for
handling validation for "...
2006 Jan 15
6
PROPOSAL: Validations as Mixin
It seems to me that Validations are quite useful for many objects, even
ones having nothing to do with ActiveRecord.
Common examples are Contact Us forms, multi-step forms, web service
paramater validations, etc.
I took a look at the source for Validations, and it seems that it is
very independent from ActiveRecord. I caught only three depenedencies:
1. validates_numericy --> depends on