app/controllers/application_controller.rb
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception.
For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception . For APIs you may want to use : null_session instead .
def verified_user!
    return if current_user.is_verified? || current_user.is_admin?
    sign_out
    redirect_to root_path
  end
def verified_user! return if current_user . is_verified? || current_user . is_admin? sign_out redirect_to root_path end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .