How to reorganized time.points in timeline diapasons?


Timer has_many points

and I want to create timeline, where timer.start(

every moment i can timer.points.create(

and of course timeline have a timer.end(

point_params(:id, :time)

How reorganizing timer.points in simple timer with diapasons, where, for exemple,{timer.points.first(0…5), timer.points.second(6…12) … timer.points.last(39…44)} ?

Any solutions, ideas, practice?


I have utterly no clue what you're trying to do, but sure, here's an idea:

Write some tests.

Describe the desired behavior *in code* and you're nearly there. It's
a habit you can't acquire soon enough :slight_smile:

Good luck.