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 Ancient Winter 3 | Fiction | 24.81 € | DAW | DAW | 1971-01-01 | Joe Abercrombie | joe@example.com | ✗ | C2 | 276.0 g | ✓ | 2025-04-30 | ||
| The Quiet Forest 8 | Fiction | 11.98 € | Ace | Ace | 1952-01-01 | Becky Chambers | becky@example.com | ✗ | Reserve | 631.0 g | ✓ | 2023-09-12 | ||
| The Broken Engine 9 | Fiction | 32.99 € | Gollancz | Gollancz | 1927-01-01 | Ted Chiang, Ann Leckie, Frank Herbert | ted@example.com, ann@example.com, frank@example.com | ✗ | B2 | 873.0 g | ✓ | 2022-06-19 | ||
| 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 Dispossessed Station 12 | Nonfiction | 16.58 € | Baen | Baen | 1983-01-01 | Martha Wells, Ann Leckie | martha@example.com, ann@example.com | ✓ | C1 | 517.0 g | ✓ | 2024-12-06 | ||
| The Ancient Signal 16 | Scifi | 35.51 € | Del Rey | Del Rey | 1977-01-01 | Joe Abercrombie | joe@example.com | ✗ | B2 | 497.0 g | ✓ | 2021-06-10 | ||
| The Quiet Door 18 | Scifi | 21.79 € | Gollancz | Gollancz | 1927-01-01 | Becky Chambers | becky@example.com | ✗ | A1 | 910.0 g | ✓ | 2023-07-11 | ||
| The Hidden Archive 22 | Fiction | 23.21 € | — | — | — | Becky Chambers, Mary Shelley, Frank Herbert | becky@example.com, mary@example.com, frank@example.com | ✓ | B1 | 618.0 g | ✓ | 2026-04-15 | ||
| The Distant Door 26 | Nonfiction | 16.40 € | Gollancz | Gollancz | 1927-01-01 | Ann Leckie, Iain Banks, Liu Cixin | ann@example.com, iain@example.com, liu@example.com | ✓ | Reserve | 593.0 g | ✓ | 2024-09-09 | ||
| 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 28 | Fiction | 29.97 € | Tor Books | Tor Books | 1980-01-01 | Iain Banks, Liu Cixin, Ted Chiang | iain@example.com, liu@example.com, ted@example.com | ✓ | A2 | 252.0 g | ✓ | 2023-02-13 | ||
| The Dispossessed Winter 29 | Nonfiction | 9.04 € | DAW | DAW | 1971-01-01 | Ted Chiang, Ann Leckie | ted@example.com, ann@example.com | ✓ | C2 | 924.0 g | ✓ | 2026-08-12 | ||
| The Hidden Engine 31 | Fiction | 32.85 € | Vintage | Vintage | 1954-01-01 | Becky Chambers, Mary Shelley, Stanisław Lem | becky@example.com, mary@example.com, stanislaw@example.com | ✓ | B2 | 244.0 g | ✓ | 2023-08-30 | ||
| 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 Endless Signal 33 | Fiction | 39.74 € | Ace | Ace | 1952-01-01 | Adrian Tchaikovsky | adrian@example.com | ✓ | B1 | 841.0 g | ✓ | 2025-05-09 | ||
| The Endless Door 35 | Nonfiction | 24.06 € | — | — | — | Martha Wells | martha@example.com | ✓ | A2 | 593.0 g | ✓ | 2026-02-09 | ||
| The Luminous Machine 41 | Nonfiction | 23.63 € | — | — | — | Ursula Le Guin | ursula@example.com | ✓ | A2 | 549.0 g | ✓ | 2026-09-27 | ||
| The Ancient Garden 43 | Fiction | 42.67 € | Orbit | Orbit | 1974-01-01 | Frank Herbert, Iain Banks, Becky Chambers | frank@example.com, iain@example.com, becky@example.com | ✓ | C1 | 306.0 g | ✓ | 2021-07-21 | ||
| The Luminous City 45 | Nonfiction | 19.30 € | Baen | Baen | 1983-01-01 | Ann Leckie, Kim Robinson, Octavia Butler | ann@example.com, kim@example.com, octavia@example.com | ✗ | B1 | 252.0 g | ✓ | 2021-07-23 | ||
| The Hidden Tower 47 | Nonfiction | 19.92 € | Del Rey | Del Rey | 1977-01-01 | Martha Wells | martha@example.com | ✓ | B1 | 556.0 g | ✓ | 2026-06-03 | ||
| The Broken Empire 48 | Fiction | 30.49 € | Orbit | Orbit | 1974-01-01 | Ted Chiang, Ann Leckie | ted@example.com, ann@example.com | ✗ | A2 | 391.0 g | ✓ | 2022-03-22 | ||
| 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 Machine 51 | Nonfiction | 40.77 € | Tor Books | Tor Books | 1980-01-01 | Ann Leckie, Ursula Le Guin | ann@example.com, ursula@example.com | ✓ | Reserve | 916.0 g | ✓ | 2023-01-30 | ||
| The Dispossessed Empire 54 | Nonfiction | 43.50 € | Del Rey | Del Rey | 1977-01-01 | Margaret Atwood, Octavia Butler, Stanisław Lem | margaret@example.com, octavia@example.com, stanislaw@example.com | ✓ | C2 | 493.0 g | ✓ | 2025-12-24 | ||
| 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 Quiet Dune 62 | Nonfiction | 24.14 € | Vintage | Vintage | 1954-01-01 | Mary Shelley | mary@example.com | ✗ | A1 | 474.0 g | ✓ | 2021-06-19 | ||
| 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 Forest 64 | Fiction | 36.11 € | — | — | — | Liu Cixin | liu@example.com | ✓ | A2 | 747.0 g | ✓ | 2024-07-20 | ||
| 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 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 Ancient Ocean 74 | Nonfiction | 14.70 € | Gollancz | Gollancz | 1927-01-01 | Margaret Atwood | margaret@example.com | ✓ | C2 | 933.0 g | ✓ | 2023-01-11 | ||
| 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 Engine 76 | Fiction | 34.79 € | Ace | Ace | 1952-01-01 | Mary Shelley | mary@example.com | ✓ | C1 | 824.0 g | ✓ | 2024-12-06 | ||
| The Hidden Engine 78 | Scifi | 8.00 € | — | — | — | Iain Banks | iain@example.com | ✗ | B1 | 800.0 g | ✓ | 2022-06-14 | ||
| The Hidden Dune 79 | Fiction | 24.25 € | Gollancz | Gollancz | 1927-01-01 | Martha Wells, Ursula Le Guin | martha@example.com, ursula@example.com | ✓ | B1 | 248.0 g | ✓ | 2026-05-08 | ||
| The Ancient Engine 80 | Nonfiction | 17.29 € | — | — | — | Martha Wells, Kim Robinson | martha@example.com, kim@example.com | ✓ | B2 | 623.0 g | ✓ | 2026-01-12 | ||
| The Burning Forest 81 | Nonfiction | 6.28 € | Del Rey | Del Rey | 1977-01-01 | Ted Chiang, Becky Chambers, Liu Cixin | ted@example.com, becky@example.com, liu@example.com | ✓ | A2 | 714.0 g | ✓ | 2026-02-16 | ||
| 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 Distant Station 86 | Fiction | 12.86 € | Orbit | Orbit | 1974-01-01 | Frank Herbert, Mary Shelley | frank@example.com, mary@example.com | ✓ | Reserve | 276.0 g | ✓ | 2023-07-02 | ||
| The Luminous Tower 88 | Nonfiction | 37.25 € | Ace | Ace | 1952-01-01 | Frank Herbert, Liu Cixin, Ursula Le Guin | frank@example.com, liu@example.com, ursula@example.com | ✓ | C1 | 726.0 g | ✓ | 2025-01-27 | ||
| 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 Hidden Winter 92 | Nonfiction | 29.93 € | Del Rey | Del Rey | 1977-01-01 | Margaret Atwood, Octavia Butler, Iain Banks | margaret@example.com, octavia@example.com, iain@example.com | ✓ | C2 | 636.0 g | ✓ | 2023-06-06 | ||
| The Ancient Forest 93 | Fiction | 41.21 € | DAW | DAW | 1971-01-01 | Liu Cixin, Kim Robinson | liu@example.com, kim@example.com | ✓ | C1 | 778.0 g | ✓ | 2025-01-17 | ||
| The Luminous Station 94 | Fiction | 26.90 € | Vintage | Vintage | 1954-01-01 | Adrian Tchaikovsky, Mary Shelley | adrian@example.com, mary@example.com | ✓ | C2 | 551.0 g | ✓ | 2022-05-17 | ||
| The Quiet Station 95 | Fiction | 6.29 € | Tor Books | Tor Books | 1980-01-01 | Adrian Tchaikovsky, Ursula Le Guin, Stanisław Lem | adrian@example.com, ursula@example.com, stanislaw@example.com | ✓ | Reserve | 224.0 g | ✓ | 2023-05-29 | ||
| The Distant Winter 96 | Fiction | 10.36 € | Gollancz | Gollancz | 1927-01-01 | Martha Wells, Becky Chambers | martha@example.com, becky@example.com | ✓ | C1 | 629.0 g | ✓ | 2025-02-12 | ||
| The Dispossessed Ocean 101 | Fiction | 12.58 € | Vintage | Vintage | 1954-01-01 | Ann Leckie | ann@example.com | ✓ | B1 | 853.0 g | ✓ | 2023-06-11 | ||
| The Broken Forest 104 | Fiction | 17.49 € | — | — | — | Octavia Butler, Frank Herbert | octavia@example.com, frank@example.com | ✓ | B1 | 297.0 g | ✓ | 2023-01-14 | ||
| The Hidden Door 106 | Nonfiction | 19.30 € | Orbit | Orbit | 1974-01-01 | Martha Wells, Mary Shelley, Stanisław Lem | martha@example.com, mary@example.com, stanislaw@example.com | ✓ | C1 | 316.0 g | ✓ | 2023-04-17 | ||
| 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 Hidden Garden 109 | Fiction | 22.95 € | Vintage | Vintage | 1954-01-01 | Ted Chiang | ted@example.com | ✓ | C1 | 533.0 g | ✓ | 2026-07-02 | ||
| The Distant Archive 111 | Nonfiction | 11.59 € | DAW | DAW | 1971-01-01 | Frank Herbert | frank@example.com | ✓ | C1 | 739.0 g | ✓ | 2026-03-20 | ||
| The Quiet Forest 113 | Fiction | 33.56 € | Vintage | Vintage | 1954-01-01 | Adrian Tchaikovsky, Octavia Butler | adrian@example.com, octavia@example.com | ✓ | A2 | 196.0 g | ✓ | 2023-05-07 | ||
| The Ancient Archive 114 | Nonfiction | 44.21 € | Ace | Ace | 1952-01-01 | Frank Herbert, Kim Robinson, Margaret Atwood | frank@example.com, kim@example.com, margaret@example.com | ✓ | C1 | 484.0 g | ✓ | 2024-01-24 | ||
| The Silent Engine 115 | Fiction | 24.38 € | — | — | — | Octavia Butler, Margaret Atwood, Ursula Le Guin | octavia@example.com, margaret@example.com, ursula@example.com | ✗ | A2 | 282.0 g | ✓ | 2026-05-11 | ||
| The Silent Archive 116 | Fiction | 10.28 € | — | — | — | Ted Chiang, Joe Abercrombie | ted@example.com, joe@example.com | ✓ | A1 | 753.0 g | ✓ | 2026-06-02 | ||
| 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 Burning Empire 118 | Fiction | 17.01 € | DAW | DAW | 1971-01-01 | Kim Robinson, Mary Shelley, Margaret Atwood | kim@example.com, mary@example.com, margaret@example.com | ✗ | Reserve | 720.0 g | ✓ | 2025-09-30 | ||
| 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 | ||