Forum: Ruby on Rails beginner - default form values

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fe1b3603e4ed046ca0486626e1dbff91?d=identicon&s=25 Simon (Guest)
on 2006-04-28 07:53
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.
This topic is locked and can not be replied to.