views:

104

answers:

1

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?

A: 

try with

current_user_session.user.destroy

instead

shingara
No luck. It is still requiring authentication.
merlin