You could try using activespec to make some spec objects for your forms, and use this to validate the data.
http://activespec.rubyforge.org