diff --git a/app/views/user_admin/edit.html.haml b/app/views/user_admin/edit.html.haml --- a/app/views/user_admin/edit.html.haml +++ b/app/views/user_admin/edit.html.haml @@ -1,13 +1,4 @@ %h1 Editing user += simple_form_for @user, url: user_admin_path(@user) do |f| + = render partial: 'form', local: f -= form_tag( {:action => 'update', :id => @user}, {class: 'form-horizontal'}) do - = error_messages_for 'user' - = render partial: "form" - .form-group - .col-md-offset-2.col-md-4 - = submit_tag "Edit", class: 'btn btn-primary' - - -= link_to 'Show', :action => 'show', :id => @user -| -= link_to 'Back', :action => 'index'