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 Dispossessed City 4 | Fiction | 19.95 € | — | — | — | Kim Robinson, Margaret Atwood, Adrian Tchaikovsky | kim@example.com, margaret@example.com, adrian@example.com | ✓ | B2 | 248.0 g | ✗ | 2024-06-15 | ||
| The Dispossessed City 7 | Fiction | 17.82 € | Vintage | Vintage | 1954-01-01 | Liu Cixin, Octavia Butler, Kim Robinson | liu@example.com, octavia@example.com, kim@example.com | ✓ | B1 | 629.0 g | ✗ | 2025-05-10 | ||
| 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 Endless Station 13 | Fiction | 27.05 € | DAW | DAW | 1971-01-01 | Ann Leckie, Martha Wells, Ursula Le Guin | ann@example.com, martha@example.com, ursula@example.com | ✗ | A1 | 748.0 g | ✗ | 2026-04-16 | ||
| The Endless Dune 17 | Fiction | 18.69 € | Tor Books | Tor Books | 1980-01-01 | Joe Abercrombie, Mary Shelley, Stanisław Lem | joe@example.com, mary@example.com, stanislaw@example.com | ✓ | A2 | 653.0 g | ✗ | 2025-09-21 | ||
| The Hidden Mirror 19 | Fiction | 37.51 € | Vintage | Vintage | 1954-01-01 | Joe Abercrombie, Ursula Le Guin, Adrian Tchaikovsky | joe@example.com, ursula@example.com, adrian@example.com | ✓ | Reserve | 566.0 g | ✗ | 2026-08-14 | ||
| 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 Ancient Mirror 24 | Fiction | 33.42 € | Gollancz | Gollancz | 1927-01-01 | Mary Shelley | mary@example.com | ✓ | B1 | 732.0 g | ✗ | 2026-06-25 | ||
| The Endless Winter 25 | Fiction | 41.02 € | Del Rey | Del Rey | 1977-01-01 | Ann Leckie | ann@example.com | ✓ | B2 | 582.0 g | ✗ | 2022-10-05 | ||
| 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 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 Endless Signal 33 | Fiction | 39.74 € | Ace | Ace | 1952-01-01 | Adrian Tchaikovsky | adrian@example.com | ✓ | B1 | 841.0 g | ✓ | 2025-05-09 | ||
| The Distant Forest 38 | Fiction | 38.71 € | Tor Books | Tor Books | 1980-01-01 | Adrian Tchaikovsky, Octavia Butler | adrian@example.com, octavia@example.com | ✓ | A1 | 829.0 g | ✗ | 2023-11-19 | ||
| The Ancient Garden 42 | Fiction | 35.86 € | Tor Books | Tor Books | 1980-01-01 | Iain Banks | iain@example.com | ✓ | A2 | 598.0 g | ✗ | 2022-09-11 | ||
| 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 Distant Engine 46 | Fiction | 21.25 € | Orbit | Orbit | 1974-01-01 | Margaret Atwood, Ted Chiang | margaret@example.com, ted@example.com | ✓ | B1 | 427.0 g | ✗ | 2021-12-07 | ||
| 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 Burning Station 50 | Fiction | 14.43 € | Ace | Ace | 1952-01-01 | Ursula Le Guin, Octavia Butler | ursula@example.com, octavia@example.com | ✓ | Reserve | 659.0 g | ✗ | 2023-12-15 | ||
| The Distant Garden 52 | Fiction | 36.80 € | — | — | — | Joe Abercrombie, Ursula Le Guin | joe@example.com, ursula@example.com | ✓ | C1 | 478.0 g | ✗ | 2024-09-09 | ||
| The Ancient Ocean 53 | Fiction | 25.74 € | Del Rey | Del Rey | 1977-01-01 | Martha Wells, Ursula Le Guin | martha@example.com, ursula@example.com | ✓ | B1 | 240.0 g | ✗ | 2024-04-01 | ||
| The Quiet Empire 59 | Fiction | 39.87 € | Vintage | Vintage | 1954-01-01 | Kim Robinson, Liu Cixin, Ted Chiang | kim@example.com, liu@example.com, ted@example.com | ✓ | A2 | 782.0 g | ✗ | 2021-12-16 | ||
| The Dispossessed Forest 64 | Fiction | 36.11 € | — | — | — | Liu Cixin | liu@example.com | ✓ | A2 | 747.0 g | ✓ | 2024-07-20 | ||
| The Ancient Dune 67 | Fiction | 38.41 € | Tor Books | Tor Books | 1980-01-01 | Mary Shelley, Ann Leckie | mary@example.com, ann@example.com | ✓ | B2 | 805.0 g | ✗ | 2022-05-22 | ||
| 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 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 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 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 Hidden Garden 99 | Fiction | 24.11 € | DAW | DAW | 1971-01-01 | Frank Herbert | frank@example.com | ✓ | C2 | 414.0 g | ✗ | 2024-04-26 | ||
| The Burning Archive 100 | Fiction | 24.48 € | — | — | — | Joe Abercrombie | joe@example.com | ✗ | B1 | 813.0 g | ✗ | 2024-02-04 | ||
| 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 Dispossessed Door 103 | Fiction | 30.10 € | Ace | Ace | 1952-01-01 | Iain Banks, Frank Herbert | iain@example.com, frank@example.com | ✗ | Reserve | 738.0 g | ✗ | 2023-09-26 | ||
| 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 Garden 109 | Fiction | 22.95 € | Vintage | Vintage | 1954-01-01 | Ted Chiang | ted@example.com | ✓ | C1 | 533.0 g | ✓ | 2026-07-02 | ||
| 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 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 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 Ancient Archive 119 | Fiction | 21.49 € | DAW | DAW | 1971-01-01 | Octavia Butler, Mary Shelley | octavia@example.com, mary@example.com | ✗ | A2 | 559.0 g | ✗ | 2026-10-26 | ||