tictoc Rails code