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 | ||
|---|---|---|---|---|---|---|---|---|
|
|
|
|||||||
| No records | ||||||||
Reviews
|
|
|||||
|---|---|---|---|---|---|
| Book | Reviewer name | Rating | Body | Created at | |
|
|
|
|
|||
| No records | |||||