photomix/app/views/admin/users/edit.html.erb

13 lines
385 B
Plaintext
Raw Normal View History

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