When your index views access a large number of records, you'll need to implement pagination to help your users navigate through the records.
The pagination component provides a clean and flexible way to display pagination links (page numbers with previous and next links), along with a description of the current page and total number of pages.
It's built on top of the popular Pagy gem, which is a powerful and flexible pagination gem for Rails. Instrumental adds essential and consistent styling to the pagination output in your views.
rails g instrumental:pagination
I created Instrumental Components to make designing and building professional apps with Ruby on Rails easy, fast, and fun. I use it on all of my projects and I hope it helps you build something great.