Edit <%= resource_name.to_s.humanize %>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => 'form-horizontal' }) do |f| %> <%= devise_error_messages! %>
<%= f.label :email, :class => 'control-label' %>
<%= f.email_field :email, :class => 'span4' %>
<%= f.label :username, :class => 'control-label' %>
<%= f.text_field :username, :class => 'span4' %>
<%= f.label :password, :class => 'control-label' %>
<%= f.password_field :password, :autocomplete => "off", :class => 'span4' %> Leave blank if you don't want to change it.
<%= f.label :password_confirmation, :class => 'control-label' %>
<%= f.password_field :password_confirmation, :class => 'span4' %>
<%= f.label :current_password, :class => 'control-label' %>
<%= f.password_field :current_password, :class => 'span4' %> We need your current password to confirm your changes.
<%= f.submit "Update", :class => "btn btn-primary" %>
<% end %>

Cancel my account

Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %>.

<%= link_to "Back", :back %>