I want to fallback to page 1 if the page number provided is out_of_range?
.
For example if there are total 10 records and per_page is 5 which makes two pages. I want to fall back to page 1 if someone tries to hit page 3 which doesn't exist.
We are using kaminari (0.16.1)
.
Aucun commentaire:
Enregistrer un commentaire