the options for text_field_tag are
name, value, html_options
so
text_field_tag ''my_text_field'', :value =>
field_value_variable
If you need more info, have a look at api.rubyonrails.com
-----Original Message-----
From: Simon <simon@vouchme.com>
Subj: [Rails] beginner - default form values
Date: Thu Apr 27, 2006 11:54 pm
Size: 730 bytes
To: rails@lists.rubyonrails.org
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.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails