Authors
How this page is built
the gem renders it — this is all you write
A zero-config model — Author doesn't even include CrudComponents::Model. The table, search, filters, the derived actions and the auto-derived Books (habtm) column are all inferred from the schema. Your controller just assigns the scope @authors (where you'd authorize).
app/models/author.rb
class Author < ApplicationRecord
has_and_belongs_to_many :books
end # no CrudComponents config at all
app/views/authors/index.html.erb
<%= crud_collection @authors %>








