Edit Account
<% form_for [:admin, @user] do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Update" %>
<% end %>
<%= link_to("Delete user", { :action => "destroy", :id => @user },
:confirm => "Are you sure you want to delete this user?",
:method => :delete) %>
<%= link_to "All users", admin_users_path %>