Validate a form NOT connected to a model


#1

Is there any way to validate a form that isn’t connected to a model. I
have
a form that connects to a controller action and I want to validate the
inputs on the form like I would with the validates_ATTRIBUTE_of property
on
a model. Is there any way to do this?


#2

Ben Wyrosdick wrote:

Is there any way to validate a form that isn’t connected to a model. I
have
a form that connects to a controller action and I want to validate the
inputs on the form like I would with the validates_ATTRIBUTE_of property
on
a model. Is there any way to do this?

Did you ever get this figured out? I have the same issue.

Thanks in Advance
Thom


#3

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

http://activespec.rubyforge.org


#4

http://www.bphogan.com/learn/pdf/tableless_contact_form.pdf provides a
description which will help, I think