I use the gem will-paginate
.
Lets suppose i have a model records
that is sort by created_at
and the client has the records until a specific record with the id 77. Now would it be possible to define for example:
Records.paginate(:page => params[:record_id], :per_page => 30)
So that the pagination doesnt`t start at a specific page but at a record
Thanks!