I have a contact form, if a user enters an invalid email I redirect
them back to the form to correct it. I didn’t want users to have to
re-enter all the data so I want to repopulate the valid fields for them.
The only way I can currently get this to work is by using globals, which
doesn’t feel right. Is there another way?
<% form_tag( :action => :send_mail ) do %>
|<%= text_field_tag :name, $name, :size => 25 %>|