I have a model:
entry (created_at: datetime, temperature: float, melt_type: string)
I need to paginate entries by cycle (rather than a set number of entries).
A cycle is defined by the first entry with any melt_type value to the last entry before another melt_type is entered. (melt_type appears for a few days at the beginning of a cycle lasting ~40 days, but won't appear any other time in a cycle).
I've found a few pagination gems (will_paginate or Kaminari), but am having difficulty finding a solution that doesn't use an exact number of entries per page.