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 :catalog). 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: :catalog %> <%# search, filters, sort, actions %>
<%= crud_filter @books, fieldset: :catalog %> <%# filter sidebar (the model, or the list's scope) %>
Read more: Fields & cells · Views & fieldsets
| Cover | Title | Subtitle | Author names | Genre | Price | Pages | Published on | Publisher | Reviews | Active | Manual | Created at | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
||||||||||
![]() |
The Endless Dune 17 | — | Joe Abercrombie, Mary Shelley, and Stanisław Lem | Fiction | 18.69 € | 593 | 2011-07-09 | Tor Books | Linus on The Endless Dune 17, Ada on The Endless Dune 17 | ✓ | the-endless-dune-17-manual.pdf | 19 Nov 2026 23:59 | ||
![]() |
The Endless Winter 28 | A novel of the Garden | Iain Banks, Liu Cixin, and Ted Chiang | Fiction | 29.97 € | 361 | 1954-07-24 | Tor Books | — | ✓ | — | 19 Nov 2026 23:59 | ||
![]() |
The Distant Forest 38 | — | Adrian Tchaikovsky and Octavia Butler | Fiction | 38.71 € | 445 | 1975-06-04 | Tor Books | Radia on The Distant Forest 38, Alan on The Distant Forest 38, Radia on The Distant Forest 38 | ✓ | — | 19 Nov 2026 23:59 | ||
![]() |
The Ancient Garden 42 | — | Iain Banks | Fiction | 35.86 € | 788 | 1982-04-07 | Tor Books | Ada on The Ancient Garden 42, Radia on The Ancient Garden 42 | ✓ | — | 19 Nov 2026 23:59 | ||
![]() |
The Ancient Dune 67 | A novel of the Garden | Mary Shelley and Ann Leckie | Fiction | 38.41 € | 806 | 1978-12-04 | Tor Books | Edsger on The Ancient Dune 67, Grace on The Ancient Dune 67, Donald on The Ancient Dune 67 | ✓ | — | 19 Nov 2026 23:59 | ||
![]() |
The Quiet Station 95 | — | Adrian Tchaikovsky, Ursula Le Guin, and Stanisław Lem | Fiction | 6.29 € | 585 | 1969-02-10 | Tor Books | Donald on The Quiet Station 95 | ✓ | — | 19 Nov 2026 23:59 | ||





