On Wed, Aug 27, 2008 at 10:31 AM, Amanda .. <a.etherton / hotmail.com> wrote: > 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| %> > > <fieldset class="two-cols" id="createuser"> > <label for="name">Name</label> <%= f.text_field :name, {:class => > 'text'} %><br /><br /> > <label for="username">Username</label><%=f.text_field :username, {:class > => 'text' } %> <br /><br /> > <label for="password">Password</label><%=f.text_field :password, {:class > => 'text' } %> <br /><br /> > </fieldset> > > <%=submit_tag 'Save', {:class => 'submit' } %> > > <% end %> I haven't used Rails in a while, but what happens in between the form submission and the submission to the database. Surely, you have some control over that? Todd