I really appreciate the information from the both of you as it has definitely pointed me in the right direction. Once I have a solid validator and test it out I will absolutely send it in as a patch. Thanks again -Steve
On Dec 15, 3:49 am, John Simons <[email protected]> wrote: > As Richard point out a good reference to do a cross reference > validation is the ValidateSameAs implementation. > You can find the source in our > svn:https://svn.castleproject.org/svn/castle/Components/Validator/trunk/s...https://svn.castleproject.org/svn/castle/Components/Validator/trunk/s... > > A validator is usually composed of 2 classes, the attribute class and > the actual implementation of the validation rule class. > > Yes you are right, we don't have a GreaterOrEqual or LesserOrEqual, > once you finish your implementation feel free to send it to us as a > patch :) > > Cheers > John > > On Dec 15, 10:41 am, "G. Richard Bellamy" <[email protected]> > wrote: > > > Look at ValidateSameAs. > > > Sent from my mobile device. Please excuse any errors or omissions. > > > On Dec 14, 2009, at 2:35 PM, JimmyJamz <[email protected]> wrote: > > > > I'm looking into creating a couple custom validators utilizing active > > > record and c# but I've hit a wall. I've created my own class in C# > > > which inherits from the AbstractValidationAttribute but I'm unsure of > > > where to go from there. The simplest of the validations I'm looking to > > > create is that the current value is Less Than or equal to another > > > value on a related object. I noticed that AR has included a > > > ValidateIsLesserAttribute validation but this doesn't cover the "or > > > equal to" requirement. > > > > If anyone could give any advice, I would appreciate it greatly. > > > > -- > > > > You received this message because you are subscribed to the Google > > > Groups "Castle Project Users" group. > > > To post to this group, send email to [email protected] > > > . > > > To unsubscribe from this group, send email to > > > [email protected] > > > . > > > For more options, visit this group > > > athttp://groups.google.com/group/castle-project-users?hl=en > > > . -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
