Non Model form with Validation

Hi Everybody,

I need to create a non model form.
But also I would like to validate the form fields as you would validate
a model form using validates_presence_of,

How can I do this?

I will appreciate if someone can give me a working example since I am
not an experience Rails developer.


are u using rails 3?)
Ivan Nastyukhin

No....I am using rails 2.3.5


better you try these gems for non-model validation

active_record_no_table -

validatable -


Rails Learner wrote:

You could also take a look at HTML5 form validation.

its slki)
validation should be always duplicated at server side =)

Ivan Nastyukhin

Thanks Everyone!
I have now something to get started.

I will let you know if I have further issues.