# Rails db model validation with separate web forms, help

**URL:** <https://www.ruby-forum.com/t/rails-db-model-validation-with-separate-web-forms-help/55963>\
**Category:** Rails\
**Created:** [January 2, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/rails-db-model-validation-with-separate-web-forms-help/55963 "2006-01-02T23:00:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Donnie\_Jones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/34f0e0/32.png) [@Donnie\_Jones](https://www.ruby-forum.com/u/Donnie_Jones)\
**Post date:** [January 2, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/rails-db-model-validation-with-separate-web-forms-help/55963/1 "2006-01-02T23:00:28Z")

</div>

Hello,

I have a DB model that has many columns and I would like to separate the  
input from the user into web forms on many pages to not overburden the  
user with entering a lot of info on one page.

However, I can’t figure out how to handle the validation of the user’s  
input… I would like to validate each piece of data on each form page  
before the user is allowed to move on to the next form page.  
Is it possible to only validate part of a DB model?

Currently, I plan to save the user’s input in a session until all  
of the data iss available to save to the database, which would allow me  
to  
validate the user’s input upon saving to the database, but would not  
easily allow me to direct the user back to the form page where an error  
occurs…

Any suggestions would be great, even if it requires some re-design.  
Thank you.  
\_\_  
Donnie

---

<div class="post-metadata">

**Author:** ![Donnie\_Jones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/34f0e0/32.png) [@Donnie\_Jones](https://www.ruby-forum.com/u/Donnie_Jones)\
**Post date:** [January 2, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/rails-db-model-validation-with-separate-web-forms-help/55963/2 "2006-01-02T23:09:32Z")

</div>

Hello,

So far this is the only documentation for multi-page forms and  
validation  
that I have been able to find:  
[http://wiki.rubyonrails.com/rails/pages/HowToBuildMultiStageForms/versions/2](http://wiki.rubyonrails.com/rails/pages/HowToBuildMultiStageForms/versions/2)

Thanks.  
\_\_  
Donnie

---

<div class="post-metadata">

**Author:** ![Donnie\_Jones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/34f0e0/32.png) [@Donnie\_Jones](https://www.ruby-forum.com/u/Donnie_Jones)\
**Post date:** [January 3, 2006, 8:59am UTC](https://www.ruby-forum.com/t/rails-db-model-validation-with-separate-web-forms-help/55963/3 "2006-01-03T08:59:35Z")

</div>

I think that this plugin can help you.  
[http://rubyforge.org/projects/validator/](http://rubyforge.org/projects/validator/)

Look at svn repository

----- Original Message -----  
From: “Donnie Jones” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Monday, January 02, 2006 10:59 PM  
Subject: [Rails] Rails db model validation with separate web forms,  
help.
