app/controllers/reports_controller.rb
def update_reports
     @report = current_user.current_shift.report
     respond_to do |format|
       format.js
     end
  end
#periodically call remote function to update reports dynamically
periodically call remote function to update reports dynamically
periodically call remote function to update reports dynamically
def update_reports
     @report = current_user.current_shift.report
     respond_to do |format|
       format.js
     end
  end
def update_reports @report = current_user . current_shift . report respond_to do | format | format . js end end
periodically call remote function to update reports dynamically
periodically call remote function to update reports dynamically