# Validation - writeback in forms

**URL:** <https://www.ruby-forum.com/t/validation-writeback-in-forms/126503>\
**Category:** Rails\
**Created:** [January 18, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/validation-writeback-in-forms/126503 "2008-01-18T19:37:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpp-rob](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5e925/32.png) [@lpp-rob](https://www.ruby-forum.com/u/lpp-rob)\
**Post date:** [January 18, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/validation-writeback-in-forms/126503/1 "2008-01-18T19:37:14Z")

</div>

hallo,

i have a form like this:

\<% form\_tag :action =\> “foo1”  
\<%=select\_tag (“user”, “name”, options\_for\_select(someArray))%\>

\<%=select\_tag (“formdata”, “language1”,  
options\_for\_select(someArray))%\>  
\<%=radio\_button (“formdata”, "language1\_level, 3%\>

\<% end\>

the controller has 2 functions, foo0 (displays the formular) and foo1  
(validates data in params[:user])

if there is something wrong it renders the foo0 again, but only displays  
the entered contend of params[:user].

HOW do i get to display the enterd data for params[:formdata]. All  
formdata is not part of the model user, so i can’t just change that.  
Hopefully you understand. This text is somehow messy.

thx

---

<div class="post-metadata">

**Author:** ![lpp-rob](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5e925/32.png) [@lpp-rob](https://www.ruby-forum.com/u/lpp-rob)\
**Post date:** [January 19, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/validation-writeback-in-forms/126503/2 "2008-01-19T13:44:31Z")

</div>

Huhu,

can anyone at least give me a hint. don’t need the solution, just the  
direction to it.
