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,
validates_numericality_of…etc.
How can I do this?
I will appreciate if someone can give me a working example since I am
not an experience Rails developer.
Thanks!
are u using rails 3?)
Ivan N.
[email protected]
No…I am using rails 2.3.5
Thanks!
Hi,
better you try these gems for non-model validation
active_record_no_table -
http://www.railsfire.com/article/validating-non-active-record-model-using-active-record-no-table
validatable - http://validatable.rubyforge.org/
Regards,
T.Veeraa.
Rails L. wrote:
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,
validates_numericality_of…etc.
How can I do this?
I will appreciate if someone can give me a working example since I am
not an experience Rails developer.
Thanks!
You could also take a look at HTML5 form validation.
its slki)
validation should be always duplicated at server side =)
Ivan N.
[email protected]
Thanks Everyone!
I have now something to get started.
I will let you know if I have further issues.