ruby on rails - How to “soft delete” user with Devise

ruby on rails - How to “soft delete” user with Devise

I currently use Devise for user registration/authentication in a Rails project. When a user wants to cancel their account, the user object is destroyed, which leaves my application in an undesired sta…


ruby on rails - Devise-How do I forbid certain users from signing in?

I am using Devise for authentication in my application. How do I forbid certain users from signing in-kind of disable a user?…


ruby on rails - Where should warden callbacks be placed in a rails app?

I'm relatively new to rails. I have Devise set up, and want to run some callback code after users sign in. Looking at the Warden wiki page, I can use the "after_set_user" callback to perform this logi…


ruby on rails - Check if user is active before allowing user to sign in with devise(rails)

I am using devise and created a User field called:active which is either true or false. I have to manually make the user active(true) before the user is allowed to log in. At least that is the inte…





rails devise active_for_authentication active sign registerable disable delete warden users