app/controllers/admin/application_controller.rb
def verify_logged_in
    		unless current_user
      		redirect_to admin_login_path
    		end
  		end
# 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_logged_in
    		unless current_user
      		redirect_to admin_login_path
    		end
  		end
def verify_logged_in unless current_user redirect_to admin_login_path end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .