Displaying 1 result from an estimated 1 matches for "new_users_password".
2007 Dec 14
3
using the session to pass a value from form to controller
...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[''new_users_password''], i get nil back.
Can anyone see what i''m doing wrong?
thanks
max
--
Posted vi...