Pagination is the art of breaking down the results of an ActiveRecord query into pages.
A page is subset of all the records. In other words, it’s part of all the possible things you have in the database.
Why is this helpful?
Well, if you have hundreds, or thousands of records in your database, you probably don’t want to show ALL of them at the same time.
It would make your page very slow to load & it could feel overwhelming to your users.
Pagination solves this problem, allowing user to…