I\'m using Devise for authentication in my rails app and I\'d like to be able to block certain accounts and prevent users from reregistering with a blocked email. I\'m just
I would do it like this:
def after_sign_in_path_for(resource) if resource.is_a?(User) && resource.banned? sign_out resource banned_user_path else super end end