# Beginner - default form values

**URL:** <https://www.ruby-forum.com/t/beginner-default-form-values/59054>\
**Category:** Rails\
**Created:** [April 28, 2006, 7:53am UTC](https://www.ruby-forum.com/t/beginner-default-form-values/59054 "2006-04-28T07:53:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [April 28, 2006, 7:53am UTC](https://www.ruby-forum.com/t/beginner-default-form-values/59054/1 "2006-04-28T07:53:15Z")

</div>

I want to build a simple calculator with 1 form and a results page.  
The form will be redisplayed with an error message upon an invalid value  
entered.  
I won’t be using any database/active record for this.

The problem i have is when i return to the form page i want to redisplay  
the values already entered in the form fields.  
Should i use text\_field (which seems to be tied to a model) or  
text\_field\_tag and how do i pass these values submitted back to the form  
again from my controller.

any help would be appreciated.  
cheers, simon.
