Column picker
How this page is built
the gem renders it — this is all you write
Pass picker: true and a gear appears in the header row: the user ticks which columns are shown and (with the optional crud-columns Stimulus controller) drags to reorder them. It submits ?cols[]= to this same URL — like the sort links and filter row — so it opens and works without JavaScript. The picker groups every column by its source model (Pipedrive-style): own columns under this model, association and path columns under the model they reach — publisher.founded_on under Publisher, authors.email under Author. The selection is always intersected with the permitted set, so a forged ?cols= can only hide or reorder, never reveal one.
app/models/book.rb
fieldset :picker, %i[title genre price publisher publisher.name
publisher.founded_on authors.name authors.email active] # path columns: assoc.attr
app/views/columns/index.html.erb
<%= crud_collection @books, fieldset: :picker,
extra_columns: @columns, <%# declared + path + dynamic — all pickable %>
picker: true %> <%# gear + read ?cols= (picked_columns: :auto) %>
Read more: Column picker · Path columns
| Title | Genre | Price | Publisher | Publisher › Name | Publisher › Founded on | Authors › Name | Authors › Email | Active | Shelf | Weight | Signed | Acquired |
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
||||||||||
| The Burning Winter 6 | Scifi | 21.78 € | — | — | — | Octavia Butler | octavia@example.com | ✓ | A1 | 198.0 g | ✗ | 2026-05-07 | ||
| The Distant City 10 | Scifi | 26.91 € | DAW | DAW | 1971-01-01 | Stanisław Lem, Ted Chiang, Liu Cixin | stanislaw@example.com, ted@example.com, liu@example.com | ✓ | Reserve | 705.0 g | ✓ | 2022-12-24 | ||
| The Endless Station 11 | Scifi | 10.86 € | — | — | — | Joe Abercrombie | joe@example.com | ✓ | C2 | 656.0 g | ✗ | 2025-10-12 | ||
| The Endless Forest 15 | Scifi | 11.84 € | Del Rey | Del Rey | 1977-01-01 | Octavia Butler, Ann Leckie, Liu Cixin | octavia@example.com, ann@example.com, liu@example.com | ✓ | A2 | 697.0 g | ✗ | 2023-03-12 | ||
| The Burning Tower 20 | Scifi | 14.56 € | Ace | Ace | 1952-01-01 | Ann Leckie | ann@example.com | ✓ | A1 | 387.0 g | ✗ | 2022-05-05 | ||
| The Endless City 21 | Scifi | 36.46 € | Vintage | Vintage | 1954-01-01 | Ursula Le Guin, Frank Herbert, Octavia Butler | ursula@example.com, frank@example.com, octavia@example.com | ✓ | A2 | 345.0 g | ✗ | 2026-06-19 | ||
| The Quiet City 27 | Scifi | 39.79 € | DAW | DAW | 1971-01-01 | Frank Herbert | frank@example.com | ✓ | C2 | 313.0 g | ✓ | 2023-04-23 | ||
| The Endless Winter 30 | Scifi | 39.19 € | Ace | Ace | 1952-01-01 | Octavia Butler | octavia@example.com | ✓ | B1 | 687.0 g | ✗ | 2025-10-03 | ||
| The Hidden Winter 32 | Scifi | 40.79 € | Orbit | Orbit | 1974-01-01 | Kim Robinson, Stanisław Lem, Margaret Atwood | kim@example.com, stanislaw@example.com, margaret@example.com | ✓ | A1 | 445.0 g | ✓ | 2023-11-13 | ||
| The Silent Archive 40 | Scifi | 41.43 € | DAW | DAW | 1971-01-01 | Ann Leckie | ann@example.com | ✓ | C2 | 355.0 g | ✗ | 2025-02-01 | ||
| The Hidden Station 44 | Scifi | 12.11 € | Tor Books | Tor Books | 1980-01-01 | Margaret Atwood, Martha Wells, Becky Chambers | margaret@example.com, martha@example.com, becky@example.com | ✓ | Reserve | 450.0 g | ✗ | 2022-06-05 | ||
| The Broken Dune 49 | Scifi | 22.90 € | Vintage | Vintage | 1954-01-01 | Margaret Atwood, Mary Shelley | margaret@example.com, mary@example.com | ✓ | Reserve | 548.0 g | ✓ | 2026-06-22 | ||
| The Ancient Forest 56 | Scifi | 33.64 € | Orbit | Orbit | 1974-01-01 | Iain Banks, Ursula Le Guin, Kim Robinson | iain@example.com, ursula@example.com, kim@example.com | ✓ | A2 | 517.0 g | ✗ | 2025-02-19 | ||
| The Luminous City 57 | Scifi | 23.17 € | Ace | Ace | 1952-01-01 | Adrian Tchaikovsky, Frank Herbert, Margaret Atwood | adrian@example.com, frank@example.com, margaret@example.com | ✓ | B1 | 343.0 g | ✓ | 2026-01-05 | ||
| The Broken Empire 58 | Scifi | 34.83 € | Ace | Ace | 1952-01-01 | Martha Wells | martha@example.com | ✓ | C1 | 683.0 g | ✗ | 2025-10-29 | ||
| The Distant Tower 63 | Scifi | 18.55 € | Baen | Baen | 1983-01-01 | Iain Banks, Liu Cixin, Joe Abercrombie | iain@example.com, liu@example.com, joe@example.com | ✓ | B2 | 873.0 g | ✓ | 2025-02-09 | ||
| The Dispossessed City 66 | Scifi | 29.12 € | DAW | DAW | 1971-01-01 | Octavia Butler | octavia@example.com | ✓ | B1 | 367.0 g | ✗ | 2025-01-09 | ||
| The Endless City 69 | Scifi | 40.98 € | Vintage | Vintage | 1954-01-01 | Kim Robinson, Ursula Le Guin | kim@example.com, ursula@example.com | ✓ | A2 | 242.0 g | ✗ | 2025-06-26 | ||
| The Silent Station 70 | Scifi | 34.46 € | Gollancz | Gollancz | 1927-01-01 | Octavia Butler | octavia@example.com | ✓ | B1 | 877.0 g | ✓ | 2023-07-10 | ||
| The Ancient Engine 71 | Scifi | 32.68 € | — | — | — | Becky Chambers | becky@example.com | ✓ | B2 | 393.0 g | ✗ | 2026-07-08 | ||
| The Distant Dune 72 | Scifi | 32.20 € | Gollancz | Gollancz | 1927-01-01 | Octavia Butler, Margaret Atwood | octavia@example.com, margaret@example.com | ✓ | C1 | 267.0 g | ✗ | 2024-03-07 | ||
| The Endless Signal 73 | Scifi | 19.39 € | Del Rey | Del Rey | 1977-01-01 | Frank Herbert, Iain Banks, Margaret Atwood | frank@example.com, iain@example.com, margaret@example.com | ✓ | Reserve | 308.0 g | ✓ | 2024-01-28 | ||
| The Hidden Tower 75 | Scifi | 5.34 € | Vintage | Vintage | 1954-01-01 | Frank Herbert | frank@example.com | ✓ | C2 | 217.0 g | ✓ | 2024-02-16 | ||
| The Luminous Tower 77 | Scifi | 28.81 € | Vintage | Vintage | 1954-01-01 | Kim Robinson, Frank Herbert, Joe Abercrombie | kim@example.com, frank@example.com, joe@example.com | ✓ | B2 | 200.0 g | ✗ | 2025-08-22 | ||
| The Dispossessed Archive 82 | Scifi | 35.72 € | Ace | Ace | 1952-01-01 | Octavia Butler, Ted Chiang | octavia@example.com, ted@example.com | ✓ | C1 | 498.0 g | ✗ | 2026-09-29 | ||
| The Distant Engine 83 | Scifi | 39.52 € | Del Rey | Del Rey | 1977-01-01 | Martha Wells, Liu Cixin, Ursula Le Guin | martha@example.com, liu@example.com, ursula@example.com | ✓ | A1 | 928.0 g | ✓ | 2021-11-08 | ||
| The Quiet Door 87 | Scifi | 35.06 € | Tor Books | Tor Books | 1980-01-01 | Ted Chiang | ted@example.com | ✓ | C1 | 316.0 g | ✗ | 2024-02-13 | ||
| The Dispossessed Empire 89 | Scifi | 11.61 € | — | — | — | Kim Robinson, Joe Abercrombie | kim@example.com, joe@example.com | ✓ | A1 | 809.0 g | ✓ | 2022-12-01 | ||
| The Hidden Tower 91 | Scifi | 29.28 € | Ace | Ace | 1952-01-01 | Adrian Tchaikovsky, Frank Herbert, Kim Robinson | adrian@example.com, frank@example.com, kim@example.com | ✓ | B1 | 593.0 g | ✓ | 2024-06-08 | ||
| The Endless Ocean 105 | Scifi | 34.90 € | Baen | Baen | 1983-01-01 | Liu Cixin, Kim Robinson | liu@example.com, kim@example.com | ✓ | B2 | 843.0 g | ✗ | 2025-11-22 | ||
| The Hidden Door 107 | Scifi | 17.84 € | — | — | — | Iain Banks, Mary Shelley | iain@example.com, mary@example.com | ✓ | C2 | 660.0 g | ✓ | 2026-05-09 | ||
| The Dispossessed Signal 112 | Scifi | 38.73 € | Gollancz | Gollancz | 1927-01-01 | Ted Chiang, Frank Herbert | ted@example.com, frank@example.com | ✓ | C1 | 474.0 g | ✗ | 2024-07-17 | ||
| The Endless Empire 117 | Scifi | 29.30 € | — | — | — | Becky Chambers, Ted Chiang | becky@example.com, ted@example.com | ✓ | A1 | 430.0 g | ✓ | 2023-01-09 | ||
| The Silent Station 120 | Scifi | 42.11 € | DAW | DAW | 1971-01-01 | Martha Wells, Becky Chambers, Mary Shelley | martha@example.com, becky@example.com, mary@example.com | ✓ | C2 | 847.0 g | ✓ | 2025-02-26 | ||