removed account destroy
This commit is contained in:
@ -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
|
||||
|
@ -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 %>
|
||||
|
Reference in New Issue
Block a user