How this page is built
the gem renders it — this is all you write
A full table — search, an inline filter row, sortable columns and row actions — all derived from the model. This page toggles between the curated :index and the fuller :catalog fieldset (currently :index). Your controller assigns @books — scope it for authorization (e.g. Book.accessible_by(current_ability)) and the gem renders that scope.
app/models/book.rb
crud_structure do
attribute :price, as: :number, unit: '€', digits: 2
fieldset :index, %i[cover title author_names genre price publisher active]
fieldset :catalog, %i[cover title subtitle author_names genre price purchase_price
shop_margin pages published_on publisher reviews active manual created_at]
end
app/views/books/index.html.erb
<%= crud_collection @books, fieldset: :index %> <%# search, filters, sort, actions %>
<%= crud_filter @books, fieldset: :index %> <%# filter sidebar (the model, or the list's scope) %>
Read more: Fields & cells · Views & fieldsets
| Cover | Title | Author names | Genre | Price | Publisher | Active | ||
|---|---|---|---|---|---|---|---|---|
|
|
|
|
||||||
![]() |
The Dispossessed City 4 | Kim Robinson, Margaret Atwood, and Adrian Tchaikovsky | Fiction | 19.95 € | — | ✓ | ||
![]() |
The Quiet Mirror 5 | Kim Robinson, Liu Cixin, and Becky Chambers | Nonfiction | 32.73 € | Del Rey | ✓ | ||
![]() |
The Dispossessed City 7 | Liu Cixin, Octavia Butler, and Kim Robinson | Fiction | 17.82 € | Vintage | ✓ | ||
![]() |
The Hidden Mirror 14 | Ursula Le Guin and Kim Robinson | Nonfiction | 22.58 € | Ace | ✗ | ||
![]() |
The Hidden Winter 32 | Kim Robinson, Stanisław Lem, and Margaret Atwood | Scifi | 40.79 € | Orbit | ✓ | ||
![]() |
The Burning Door 36 | Kim Robinson | Nonfiction | 31.42 € | Baen | ✓ | ||
![]() |
The Luminous City 45 | Ann Leckie, Kim Robinson, and Octavia Butler | Nonfiction | 19.30 € | Baen | ✗ | ||
![]() |
The Ancient Forest 56 | Iain Banks, Ursula Le Guin, and Kim Robinson | Scifi | 33.64 € | Orbit | ✓ | ||
![]() |
The Quiet Empire 59 | Kim Robinson, Liu Cixin, and Ted Chiang | Fiction | 39.87 € | Vintage | ✓ | ||
![]() |
The Endless City 69 | Kim Robinson and Ursula Le Guin | Scifi | 40.98 € | Vintage | ✓ | ||
![]() |
The Luminous Tower 77 | Kim Robinson, Frank Herbert, and Joe Abercrombie | Scifi | 28.81 € | Vintage | ✓ | ||
![]() |
The Ancient Engine 80 | Martha Wells and Kim Robinson | Nonfiction | 17.29 € | — | ✓ | ||
![]() |
The Luminous Mirror 84 | Kim Robinson and Ann Leckie | Nonfiction | 19.40 € | Ace | ✗ | ||
![]() |
The Dispossessed Empire 89 | Kim Robinson and Joe Abercrombie | Scifi | 11.61 € | — | ✓ | ||
![]() |
The Hidden Tower 91 | Adrian Tchaikovsky, Frank Herbert, and Kim Robinson | Scifi | 29.28 € | Ace | ✓ | ||
![]() |
The Ancient Forest 93 | Liu Cixin and Kim Robinson | Fiction | 41.21 € | DAW | ✓ | ||
![]() |
The Endless Ocean 105 | Liu Cixin and Kim Robinson | Scifi | 34.90 € | Baen | ✓ | ||
![]() |
The Ancient Archive 114 | Frank Herbert, Kim Robinson, and Margaret Atwood | Nonfiction | 44.21 € | Ace | ✓ | ||
![]() |
The Burning Empire 118 | Kim Robinson, Mary Shelley, and Margaret Atwood | Fiction | 17.01 € | DAW | ✗ | ||


















