From: "Amanda .." Date: 2008-08-28T00:31:01+09:00 Subject: encrypting password on form submit? Hi there, I'm trying to use a form to create a user for a site. All the information from the form is currently submitted to the database as is. I want the password to be encrypted in the database, but I have no idea how to do this. I have read a bit about WD5, but have no clue how to do it really, could anybody help me out with this? Here is my form: <% form_for :user do |f| %>
<%= f.text_field :name, {:class => 'text'} %>

<%=f.text_field :username, {:class => 'text' } %>

<%=f.text_field :password, {:class => 'text' } %>

<%=submit_tag 'Save', {:class => 'submit' } %> <% end %> Any explanations would be awesome, thanks in advance! -- Posted via http://www.ruby-forum.com/.