Displaying 1 result from an estimated 1 matches for "batch_sav".
Did you mean:
batch_save
2007 Dec 14
3
using the session to pass a value from form to controller
...ould let me keep it for repopulating the text field
if the creation fails for any reason and the user gets sent back to the
page with the form).
As part of a form tag, i have this text field which is supposed to write
the value entered in it into the session
<% form_tag :action => ''batch_save'', :id => @user do %>
..
<p>Password:<%= text_field_tag :password, session[''new_users_password'']
%>
..
<%= submit_tag ''Save'' %></p>
<% end -%>
But, in the batch_save method in the controller, when i evaluate
session[&...