Styling Pagination Throughout the Application
Walk through the commands for customizing the design for the pagination elements in the application, including how to have the links match Bootstrap styles.
Guide Tasks
  • Read Tutorial
  • Watch Guide Video
Video locked
This video is viewable to users with a Bottega Bootcamp license

In this guide we are going to make the pagination look a lot better. This is easier than you think because Kaminari gives us some view themes. I like a theme called "bootstrap3", but feel free to play around these different themes.

To implement it, go to your terminal and type this command:

rails generate kaminari:views bootstrap3

Essentially, this will create a set of view files, and we'll have access to these when rails server starts up again.

large

Now, start rails server and open the browser.

large

I think this looks a lot better! The same style is available for posts too.

Resources