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 Hidden Forest 1 | A novel of the Tower | Frank Herbert, Ted Chiang, and Ann Leckie | Nonfiction | 28.24 € | 579 | 2007-06-12 | Orbit | Ada on The Hidden Forest 1, Alan on The Hidden Forest 1, Alan on The Hidden Forest 1 | ✗ | the-hidden-forest-1-manual.pdf | 19 Nov 2026 23:49 | ||
![]() |
The Hidden Mirror 14 | A novel of the Dune | Ursula Le Guin and Kim Robinson | Nonfiction | 22.58 € | 689 | 2016-08-14 | Ace | Edsger on The Hidden Mirror 14, Ada on The Hidden Mirror 14, Radia on The Hidden Mirror 14 | ✗ | — | 19 Nov 2026 23:49 | ||
![]() |
The Luminous City 45 | — | Ann Leckie, Kim Robinson, and Octavia Butler | Nonfiction | 19.30 € | 732 | 1970-10-14 | Baen | Grace on The Luminous City 45, Donald on The Luminous City 45 | ✗ | the-luminous-city-45-manual.pdf | 19 Nov 2026 23:49 | ||
![]() |
The Silent Station 60 | A novel of the Forest | Becky Chambers, Octavia Butler, and Margaret Atwood | Nonfiction | 34.96 € | 518 | 1998-09-24 | DAW | Grace on The Silent Station 60, Radia on The Silent Station 60, Radia on The Silent Station 60 +1 more | ✗ | — | 19 Nov 2026 23:49 | ||
![]() |
The Broken Station 61 | — | Octavia Butler | Nonfiction | 18.89 € | 226 | 2006-10-09 | DAW | Alan on The Broken Station 61, Donald on The Broken Station 61 | ✗ | the-broken-station-61-manual.pdf | 19 Nov 2026 23:49 | ||
![]() |
The Quiet Dune 62 | — | Mary Shelley | Nonfiction | 24.14 € | 538 | 1999-02-17 | Vintage | Radia on The Quiet Dune 62, Grace on The Quiet Dune 62, Barbara on The Quiet Dune 62 +1 more | ✗ | — | 19 Nov 2026 23:49 | ||
![]() |
The Hidden Ocean 65 | — | Joe Abercrombie, Iain Banks, and Ann Leckie | Nonfiction | 43.18 € | 880 | 1980-07-10 | Del Rey | Donald on The Hidden Ocean 65, Ada on The Hidden Ocean 65 | ✗ | the-hidden-ocean-65-manual.pdf | 19 Nov 2026 23:49 | ||
![]() |
The Luminous Mirror 84 | — | Kim Robinson and Ann Leckie | Nonfiction | 19.40 € | 855 | 1984-12-06 | Ace | Alan on The Luminous Mirror 84, Edsger on The Luminous Mirror 84, Donald on The Luminous Mirror 84 +1 more | ✗ | — | 19 Nov 2026 23:49 | ||
![]() |
The Luminous Ocean 108 | A novel of the Ocean | Ted Chiang | Nonfiction | 39.89 € | 496 | 1969-11-16 | Orbit | Alan on The Luminous Ocean 108, Linus on The Luminous Ocean 108, Alan on The Luminous Ocean 108 +1 more | ✗ | — | 19 Nov 2026 23:49 | ||








