Paginating a collection in Ruby on Rails is super fun! In the past I used will_paginate & kaminari, but now I really like Pagy.
In this tutorial I paginate a collection, and add the Bootstrap styling.
Sources
➡ Pagy Repo: https://github.com/ddnexus/pagy
➡ Pagy Docs: https://ddnexus.github.io/pagy/how-to
Chapters
0:00 - What Are We Going To Do?
0:07 - What does the code look like right now?
0:53 - Adding the gem & the pagy backend
3:16 - Adding include Pagy Frontend
4:28 - Adding the Bootstrap Styling
5:40 - Limit items per page
6:38 - Thank You
Follow Me Online
➡ Blog: https://mikerogers.io/
➡ Twitter: / mikerogers0
➡ GitHub: https://github.com/mikerogers0
➡ YouTube: / mikerogers0
➡ BuyMeACoffee: https://www.buymeacoffee.com/MikeRogers0
➡ Dev.to: https://dev.to/mikerogers0
#RSpec