I have a semi-complex application i’m building that has various wizards and screens. I would like to do server-side validation but not use the built in validation in rails. Basically, I need to do different types of validation on the same type of object, in different contexts. In one case, i may validate 3 out of 5 of the object’s attributes. In another only one, in a third all of them. I don’t really want to have a bunch of :if => {} lambdas in my models’ validations either. That gets ugly as the number of contexts grows.
Is there some alternative validation framework for rails that can do this?
I have the same need. You might have a look at Verity and Semantic-Attributes. Both have their own DSL for defining validations. Semantic Attributes depends on rails, I think.