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 ensure_signup_complete
    return if action_name == "finish_signup"
    if current_user && !current_user.email_verified?
      redirect_to finish_signup_path(current_user)
    end
  end
def ensure_signup_complete return if action_name == "finish_signup" if current_user && ! current_user . email_verified? redirect_to finish_signup_path ( current_user ) end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .