removed account destroy

This commit is contained in:
2016-09-28 22:15:37 -05:00
parent 81c667da0f
commit 2a10a93ac9
4 changed files with 1 additions and 15 deletions

View File

@ -40,11 +40,6 @@ class AccountsController < ApplicationController
end
end
def destroy
@account.destroy
redirect_to accounts_url, notice: 'Account was successfully destroyed.'
end
private
def set_account

View File

@ -25,6 +25,5 @@
<%= @account.contact_email %>
</p>
<%= link_to 'Destroy', @account, method: :delete, data: { confirm: 'Are you sure?' } %>
<%= link_to 'Edit', edit_account_path(@account) %> |
<%= link_to 'Back', accounts_path %>