Publishers
How this page is built
the gem renders it — this is all you write
A curated table. fieldset :index chooses the columns; label :name defines how a publisher renders wherever it's linked from other models. Your controller assigns the scope @publishers.
app/models/publisher.rb
crud_structure do
label :name
fieldset :index, %i[name founded_on books]
end
app/views/publishers/index.html.erb
<%= crud_collection @publishers %>
Read more: Views & fieldsets · Identity
| Name | Founded on | Brochure | Books | Api token | |
|---|---|---|---|---|---|
|
|
|
||||
| Tor Books | 1980-01-01 | tor-books-brochure.adoc | The Endless Dune 17, The Endless Winter 28, The Broken Mirror 37 +8 more | ✓ | |
| Ace | 1952-01-01 | — | The Quiet Forest 8, The Hidden Mirror 14, The Burning Tower 20 +13 more | ✗ | |
| Orbit | 1974-01-01 | orbit-brochure.adoc | The Hidden Forest 1, The Hidden Winter 32, The Ancient Garden 43 +6 more | ✓ | |
| Gollancz | 1927-01-01 | — | The Broken Engine 9, The Quiet Door 18, The Ancient Mirror 24 +8 more | ✗ | |
| DAW | 1971-01-01 | daw-brochure.adoc | The Ancient Winter 3, The Distant City 10, The Endless Station 13 +16 more | ✓ | |
| Baen | 1983-01-01 | — | The Dispossessed Station 12, The Burning Door 36, The Silent Tower 39 +5 more | ✗ | |
| Del Rey | 1977-01-01 | del-rey-brochure.adoc | The Quiet Mirror 5, The Endless Forest 15, The Ancient Signal 16 +9 more | ✓ | |
| Vintage | 1954-01-01 | — | The Endless Mirror 2, The Dispossessed City 7, The Hidden Mirror 19 +12 more | ✗ | |