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 Hidden Winter 32 | Kim Robinson, Stanisław Lem, and Margaret Atwood | Scifi | 40.79 € | Orbit | ✓ | ||
![]() |
The Broken Mirror 37 | Margaret Atwood and Octavia Butler | Nonfiction | 7.28 € | Tor Books | ✓ | ||
![]() |
The Hidden Station 44 | Margaret Atwood, Martha Wells, and Becky Chambers | Scifi | 12.11 € | Tor Books | ✓ | ||
![]() |
The Distant Engine 46 | Margaret Atwood and Ted Chiang | Fiction | 21.25 € | Orbit | ✓ | ||
![]() |
The Broken Dune 49 | Margaret Atwood and Mary Shelley | Scifi | 22.90 € | Vintage | ✓ | ||
![]() |
The Dispossessed Empire 54 | Margaret Atwood, Octavia Butler, and Stanisław Lem | Nonfiction | 43.50 € | Del Rey | ✓ | ||
![]() |
The Luminous City 57 | Adrian Tchaikovsky, Frank Herbert, and Margaret Atwood | Scifi | 23.17 € | Ace | ✓ | ||
![]() |
The Silent Station 60 | Becky Chambers, Octavia Butler, and Margaret Atwood | Nonfiction | 34.96 € | DAW | ✗ | ||
![]() |
The Distant Dune 72 | Octavia Butler and Margaret Atwood | Scifi | 32.20 € | Gollancz | ✓ | ||
![]() |
The Endless Signal 73 | Frank Herbert, Iain Banks, and Margaret Atwood | Scifi | 19.39 € | Del Rey | ✓ | ||
![]() |
The Ancient Ocean 74 | Margaret Atwood | Nonfiction | 14.70 € | Gollancz | ✓ | ||
![]() |
The Quiet Tower 90 | Octavia Butler, Ted Chiang, and Margaret Atwood | Nonfiction | 31.01 € | Tor Books | ✓ | ||
![]() |
The Hidden Winter 92 | Margaret Atwood, Octavia Butler, and Iain Banks | Nonfiction | 29.93 € | Del Rey | ✓ | ||
![]() |
The Broken City 102 | Ann Leckie, Margaret Atwood, and Frank Herbert | Nonfiction | 40.54 € | Gollancz | ✓ | ||
![]() |
The Ancient Archive 114 | Frank Herbert, Kim Robinson, and Margaret Atwood | Nonfiction | 44.21 € | Ace | ✓ | ||
![]() |
The Silent Engine 115 | Octavia Butler, Margaret Atwood, and Ursula Le Guin | Fiction | 24.38 € | — | ✗ | ||
![]() |
The Burning Empire 118 | Kim Robinson, Mary Shelley, and Margaret Atwood | Fiction | 17.01 € | DAW | ✗ | ||

















