The Hidden Dune 21

How this page is built the gem renders it — this is all you write

crud_record renders the record as a definition list with the same type-aware cells as the table. The column picker is reusable here too: crud_column_picker @book (the gear, top-right) submits ?cols= to this page, and crud_record @book, picked_columns: @visible narrows the list to match — same mechanism as the table, no JS to open. Below it, an embedded reviews collection is static (query: :static). The URL is the book's slug (identify_by :slug).

app/controllers/books_controller.rb
@visible = CrudComponents.selected_columns(params)   # the picker's ?cols=, for crud_record (persist it if you like)
app/views/books/show.html.erb
<%= crud_column_picker @book %>                                  <%# the gear, reusable outside a table %>
<%= crud_record @book, picked_columns: @visible %>  <%# honors the picker's selection %>

Read more: Record view  ·  Column picker

Edit in admin
Id
3,381
Title
The Hidden Dune 21
Subtitle
A novel of the Ocean
Slug
the-hidden-dune-21
Blurb

The Hidden Dune 21dispossessed tales of the door.

  • A story in 3 parts
  • Set in the Machine
Price
16.41 €
Pages
720
Published on
1950-07-05
Active
Genre
Nonfiction
Metadata
{
  "isbn": "978-204939202",
  "binding": "paperback"
}
Internal token
Publisher
Orbit
Created at
17 Aug 15:28
Updated at
17 Aug 15:28
Cover
Manual
the-hidden-dune-21-manual.pdf
Reviews
Ada on The Hidden Dune 21, Barbara on The Hidden Dune 21, Barbara on The Hidden Dune 21
Comments
Authors
Octavia Butler
Author names
Octavia Butler

Reviews (static embedded collection — query: :static)

Book Reviewer name Rating Body Created at
The Hidden Dune 21 Ada ★★★☆☆ Read it twice already. 17 Aug 15:28
The Hidden Dune 21 Barbara ★★★☆☆ Not my cup of tea. The world-building is superb. 17 Aug 15:28
The Hidden Dune 21 Barbara ★★☆☆☆ The world-building is superb. 17 Aug 15:28