How to split records with rubies on rails?

I want to swap data lists with ruby ​​on rails. Basically, I want to show only 20 records at a time, with the following and reverse buttons. It would be nice, but not necessary, to show links to page numbers.

Something like this would be nice:

<<Previous 1 2 3 4 5 ... Next →

Is there a built-in way to do this in ruby ​​on rails (or something I can add), so I don't need to write this myself?

+3
source share

Source: https://habr.com/ru/post/1726693/


All Articles