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 verify_profile_completion
      if (user_signed_in? &&
         controller_name != 'sessions' &&
         current_user.name.blank?)
        redirect_to edit_profile_path(setup: true),
                    alert: 'You need to complete your profile.'
      end
    end
def verify_profile_completion if ( user_signed_in? && controller_name != 'sessions' && current_user . name . blank? ) redirect_to edit_profile_path ( setup : true ) , alert : 'You need to complete your profile.' end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .