I am trying to make it such that a user can delete their own account.
def destroy
@user = current_user
@user.destroy
redirect_to root_url
end
But it looks like authlogic will not allow the current_user to delete their own account. Any ideas?
I am trying to make it such that a user can delete their own account.
def destroy
@user = current_user
@user.destroy
redirect_to root_url
end
But it looks like authlogic will not allow the current_user to delete their own account. Any ideas?