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 Ancient Tower 11 | Ted Chiang, Ann Leckie, and Frank Herbert | Fiction | 40.82 € | Gollancz | ✗ | ||
![]() |
The Dispossessed Winter 24 | Ted Chiang | Nonfiction | 19.40 € | Del Rey | ✗ | ||
Reviews
|
|
|||||
|---|---|---|---|---|---|
| Book | Reviewer name | Rating | Body | Created at | |
|
|
|
|
|||
| No records | |||||

