app/views/user/registrations/edit.html.erb
<% content_for(:page_header) do %>
<h1>User Settings</h1>
<% end %>
<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
<%= f.input :name %>
<%= f.input :email %>
<%= f.input :password, :hint => "Leave blank if you don't want to change it" %>
<%= f.input :password_confirmation, :label => "Confirm password" %>
<%= f.input :current_password, :hint => "We need your current password to confirm your changes", :required => true %>
<div class="form-actions">
<%= f.submit "Update", :class => "btn btn-primary", :disable_with => "Updating.." %>
<%= link_to "Cancel", root_path, :class => "btn" %>
</div>
<% end %>
<h3>Cancel my account</h3>
<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>