Dashboard
How this page is built
the gem renders it — this is all you write
Two independent collections on one page. param_prefix: namespaces each one's ?q=/sort/filter params so sorting or filtering one leaves the other alone. Your controller assigns @books and @reviews.
app/views/dashboard/show.html.erb
<%= crud_collection @books, fieldset: :index, param_prefix: :books %>
<%= crud_collection @reviews, param_prefix: :reviews %>
Read more: Several collections
Books
| Cover | Title | Author names | Genre | Price | Publisher | Active | ||
|---|---|---|---|---|---|---|---|---|
|
|
|
|||||||
![]() |
The Broken Archive 1 | Frank Herbert, Ted Chiang, and Ann Leckie | Nonfiction | 9.59 € | Orbit | ✓ | ||
![]() |
The Endless Mirror 2 | Ann Leckie, Mary Shelley, and Ursula Le Guin | Nonfiction | 28.63 € | Vintage | ✓ | ||
![]() |
The Silent Tower 3 | Stanisław Lem and Martha Wells | Scifi | 43.93 € | Vintage | ✓ | ||
| — | The Broken Engine 4 | Liu Cixin, Ann Leckie, and Ursula Le Guin | Fiction | 12.63 € | Vintage | ✓ | ||
Reviews
|
|
|||||
|---|---|---|---|---|---|
| Book | Reviewer name | Rating | Body | Created at | |
|
|
|
|
|||
| No records | |||||


