Pagination

Table (gem footer pager) Cards (kaminari default pager)
How this page is built the gem renders it — this is all you write

Pagination works in a custom layout too. You still paginate in the controller (kaminari); the cards layout feeds collection.page_scope to kaminari's own paginate helper, so the pager below is kaminari's default markup — styling it is your job, as always with kaminari.

app/controllers/books_controller.rb
@query = CrudComponents::Query.new(Book, params, fieldset: :index, ability: current_ability)
@books = @query.apply(Book.all).page(params[:page]).per(8)   # kaminari
app/views/crud_components/layouts/_cards.html.erb
<%= paginate collection.page_scope %>   <%# kaminari's own pager, inside your card layout %>
app/views/pagination/index.html.erb
<%= crud_collection @books, query: @query, layout: :cards %>

Read more: Pagination  ·  Add a layout

The Luminous Empire 113
Author names
Ted Chiang, Mary Shelley, and Kim Robinson
Genre
Scifi
Price
31.61 €
Publisher
Active
The Dispossessed Archive 114
Author names
Octavia Butler and Joe Abercrombie
Genre
Fiction
Price
8.47 €
Publisher
DAW
Active
The Quiet Dune 115
Author names
Ursula Le Guin
Genre
Fiction
Price
42.25 €
Publisher
Active
The Endless Station 116
Author names
Octavia Butler and Joe Abercrombie
Genre
Scifi
Price
7.61 €
Publisher
Tor Books
Active
The Endless Machine 117
Author names
Ted Chiang and Kim Robinson
Genre
Scifi
Price
14.47 €
Publisher
Gollancz
Active
The Distant Winter 118
Author names
Joe Abercrombie
Genre
Fiction
Price
16.33 €
Publisher
Ace
Active
The Distant Door 119
Author names
Ted Chiang and Kim Robinson
Genre
Nonfiction
Price
29.94 €
Publisher
Orbit
Active
The Silent Winter 120
Author names
Iain Banks
Genre
Fiction
Price
16.22 €
Publisher
Del Rey
Active