Sequential Validation

hi,

have any of you tried to do sequential validation, and stop the
validation on the first failure/error ?

Basically I want to validate fields in a form, in order, stopping on the
first failure (rather than outputing loads of validation errors)

I haven't found a solution I like yet.

thanks
d

use validates_each

http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#M001324

and

return false

on first error