Books by Ursula Le Guin

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 :index). 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: :index %>   <%# search, filters, sort, actions %>
<%= crud_filter   @books, fieldset: :index %>   <%# filter sidebar (the model, or the list's scope) %>

Read more: Fields & cells  ·  Views & fieldsets

Cover Title Author names Genre Price Publisher Active
The Endless Mirror 2 Ann Leckie, Mary Shelley, and Ursula Le Guin Nonfiction 28.63 € Vintage ✓
The Endless Station 13 Ann Leckie, Martha Wells, and Ursula Le Guin Fiction 27.05 € DAW ✗
The Hidden Mirror 14 Ursula Le Guin and Kim Robinson Nonfiction 22.58 € Ace ✗
The Hidden Mirror 19 Joe Abercrombie, Ursula Le Guin, and Adrian Tchaikovsky Fiction 37.51 € Vintage ✓
The Endless City 21 Ursula Le Guin, Frank Herbert, and Octavia Butler Scifi 36.46 € Vintage ✓
The Silent Tower 39 Ann Leckie, Mary Shelley, and Ursula Le Guin Nonfiction 25.60 € Baen ✓
The Luminous Machine 41 Ursula Le Guin Nonfiction 23.63 € — ✓
The Burning Station 50 Ursula Le Guin and Octavia Butler Fiction 14.43 € Ace ✓
The Ancient Machine 51 Ann Leckie and Ursula Le Guin Nonfiction 40.77 € Tor Books ✓
The Distant Garden 52 Joe Abercrombie and Ursula Le Guin Fiction 36.80 € — ✓
The Ancient Ocean 53 Martha Wells and Ursula Le Guin Fiction 25.74 € Del Rey ✓
The Ancient Forest 56 Iain Banks, Ursula Le Guin, and Kim Robinson Scifi 33.64 € Orbit ✓
The Luminous Forest 68 Liu Cixin, Ann Leckie, and Ursula Le Guin Nonfiction 40.60 € Baen ✓
The Endless City 69 Kim Robinson and Ursula Le Guin Scifi 40.98 € Vintage ✓
The Hidden Dune 79 Martha Wells and Ursula Le Guin Fiction 24.25 € Gollancz ✓
The Distant Engine 83 Martha Wells, Liu Cixin, and Ursula Le Guin Scifi 39.52 € Del Rey ✓
The Luminous Tower 88 Frank Herbert, Liu Cixin, and Ursula Le Guin Nonfiction 37.25 € Ace ✓
The Quiet Station 95 Adrian Tchaikovsky, Ursula Le Guin, and Stanisław Lem Fiction 6.29 € Tor Books ✓
The Silent Engine 115 Octavia Butler, Margaret Atwood, and Ursula Le Guin Fiction 24.38 € — ✗
Filter
Cover
Title
Author names
Genre
Price
Publisher
Active
Reset