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:39 | ||
![]() |
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:39 | ||
![]() |
The Broken Mirror 37 | — | Margaret Atwood and Octavia Butler | Nonfiction | 7.28 € | 342 | 1955-02-20 | Tor Books | Barbara on The Broken Mirror 37, Grace on The Broken Mirror 37, Barbara on The Broken Mirror 37 | ✓ | the-broken-mirror-37-manual.pdf | 19 Nov 2026 23:39 | ||
![]() |
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:39 | ||
![]() |
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:39 | ||
![]() |
The Hidden Station 44 | A novel of the Signal | Margaret Atwood, Martha Wells, and Becky Chambers | Scifi | 12.11 € | 465 | 1995-11-12 | Tor Books | Edsger on The Hidden Station 44, Grace on The Hidden Station 44, Grace on The Hidden Station 44 | ✓ | — | 19 Nov 2026 23:39 | ||
![]() |
The Ancient Machine 51 | A novel of the City | Ann Leckie and Ursula Le Guin | Nonfiction | 40.77 € | 483 | 1973-01-10 | Tor Books | Alan on The Ancient Machine 51, Ada on The Ancient Machine 51, Donald on The Ancient Machine 51 | ✓ | — | 19 Nov 2026 23:39 | ||
![]() |
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:39 | ||
![]() |
The Quiet Door 87 | A novel of the Archive | Ted Chiang | Scifi | 35.06 € | 360 | 1991-10-24 | Tor Books | Edsger on The Quiet Door 87 | ✓ | — | 19 Nov 2026 23:39 | ||
![]() |
The Quiet Tower 90 | A novel of the Archive | Octavia Butler, Ted Chiang, and Margaret Atwood | Nonfiction | 31.01 € | 286 | 1985-08-05 | Tor Books | Grace on The Quiet Tower 90, Barbara on The Quiet Tower 90, Linus on The Quiet Tower 90 | ✓ | — | 19 Nov 2026 23:39 | ||
![]() |
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:39 | ||










