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 | |
|---|---|---|---|---|
|
|
|
|||
| Tor Books | 1980-01-01 | tor-books-brochure.adoc | The Hidden Garden 16, The Quiet Machine 31, The Ancient Engine 32 +10 more | |
| Ace | 1952-01-01 | — | The Ancient Door 34, The Hidden Mirror 35, The Endless Winter 37 +12 more | |
| Orbit | 1974-01-01 | orbit-brochure.adoc | The Hidden Forest 1, The Broken Garden 6, The Hidden Dune 9 +11 more | |
| Gollancz | 1927-01-01 | — | The Ancient Tower 11, The Quiet Station 12, The Hidden Engine 13 +8 more | |
| DAW | 1971-01-01 | daw-brochure.adoc | The Endless Mirror 20, The Luminous Ocean 25, The Burning City 27 +12 more | |
| Baen | 1983-01-01 | — | The Ancient Ocean 17, The Ancient Ocean 19, The Hidden Door 22 +7 more | |
| Del Rey | 1977-01-01 | del-rey-brochure.adoc | The Burning Machine 8, The Broken Dune 10, The Endless Forest 18 +10 more | |
| Vintage | 1954-01-01 | — | The Endless Mirror 2, The Silent Tower 3, The Hidden Winter 4 +16 more | |