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 current_manager
      @manager ||= Manager.find_by_id(session[:manager_id])
  end
def current_manager @manager ||= Manager . find_by_id ( session [ :manager_id ] ) end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .
#if session[:manager_id] #end