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 Burning Winter 6 | Octavia Butler | Scifi | 21.78 € | — | ✓ | ||
![]() |
The Dispossessed City 7 | Liu Cixin, Octavia Butler, and Kim Robinson | Fiction | 17.82 € | Vintage | ✓ | ||
![]() |
The Endless Forest 15 | Octavia Butler, Ann Leckie, and Liu Cixin | Scifi | 11.84 € | Del Rey | ✓ | ||
![]() |
The Endless City 21 | Ursula Le Guin, Frank Herbert, and Octavia Butler | Scifi | 36.46 € | Vintage | ✓ | ||
![]() |
The Endless Winter 30 | Octavia Butler | Scifi | 39.19 € | Ace | ✓ | ||
![]() |
The Broken Mirror 37 | Margaret Atwood and Octavia Butler | Nonfiction | 7.28 € | Tor Books | ✓ | ||
![]() |
The Distant Forest 38 | Adrian Tchaikovsky and Octavia Butler | Fiction | 38.71 € | Tor Books | ✓ | ||
![]() |
The Luminous City 45 | Ann Leckie, Kim Robinson, and Octavia Butler | Nonfiction | 19.30 € | Baen | ✗ | ||
![]() |
The Burning Station 50 | Ursula Le Guin and Octavia Butler | Fiction | 14.43 € | Ace | ✓ | ||
![]() |
The Dispossessed Empire 54 | Margaret Atwood, Octavia Butler, and Stanisław Lem | Nonfiction | 43.50 € | Del Rey | ✓ | ||
![]() |
The Silent Station 60 | Becky Chambers, Octavia Butler, and Margaret Atwood | Nonfiction | 34.96 € | DAW | ✗ | ||
![]() |
The Broken Station 61 | Octavia Butler | Nonfiction | 18.89 € | DAW | ✗ | ||
![]() |
The Dispossessed City 66 | Octavia Butler | Scifi | 29.12 € | DAW | ✓ | ||
![]() |
The Silent Station 70 | Octavia Butler | Scifi | 34.46 € | Gollancz | ✓ | ||
![]() |
The Distant Dune 72 | Octavia Butler and Margaret Atwood | Scifi | 32.20 € | Gollancz | ✓ | ||
![]() |
The Dispossessed Archive 82 | Octavia Butler and Ted Chiang | Scifi | 35.72 € | Ace | ✓ | ||
![]() |
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 Forest 104 | Octavia Butler and Frank Herbert | Fiction | 17.49 € | — | ✓ | ||
![]() |
The Quiet Forest 113 | Adrian Tchaikovsky and Octavia Butler | Fiction | 33.56 € | Vintage | ✓ | ||
![]() |
The Silent Engine 115 | Octavia Butler, Margaret Atwood, and Ursula Le Guin | Fiction | 24.38 € | — | ✗ | ||
![]() |
The Ancient Archive 119 | Octavia Butler and Mary Shelley | Fiction | 21.49 € | DAW | ✗ | ||





















