Skip to content

KamilDzierbicki/bootstrap4-kaminari-views

Repository files navigation

Bootstrap4 Kaminari Views

Quick Bootstrap 4 styling (tested for bootstrap 4.0.0) for Kaminari

Installation

Include to your Gemfile

gem 'kaminari'
gem 'bootstrap4-kaminari-views'

And run in console

bundle install

Usage

Render Pagination with a theme

= paginate @users, theme: 'twitter-bootstrap-4'

Render with specific pagination & nav classes

= paginate @users, theme: 'twitter-bootstrap-4',
                   pagination_class: "pagination-sm",
                   nav_class: "d-inline-b"

Credits

Kaminari - For making kaminari gem

bootstrap-kaminari-views - For making bootstrap-ify views for kaminari