CrudComponents — living documentation

Every page below is a real, running demo with a “How this page is built” panel showing the exact DSL and ERB. Rule zero: a bare model already renders — declaring things only refines it.

<%= crud_collection Book.all %>   <%# a sortable, filterable, type-aware table — one line %>

Many demos gate columns or actions by permission. Use “Become admin” (top-right) to flip can? and watch manager-only fields and buttons appear or disappear.

Basics

The four everyday helpers — each renders from one line.

Identity & associations

How records are titled, linked and searched.

Power features

The reasons you'd reach for this gem over scaffolding.

Rendering & data shapes

Soft-dependency renderers and trickier model shapes.

Integration

Plays with the rest of your Rails app.