Allow user to delete own account - Authlogic
Posted
by merlin
on Stack Overflow
See other posts from Stack Overflow
or by merlin
Published on 2010-03-03T19:04:26Z
Indexed on
2010/05/11
15:04 UTC
Read the original article
Hit count: 151
ruby-on-rails
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?
© Stack Overflow or respective owner