Introduction
cm-admin (internally Catalyst) is a Ruby on Rails engine that turns a DSL declared in your models into a complete admin panel: listings, detail pages, forms, filters, actions, roles and more.
app/models/concerns/cm_admin/blog_post.rb
cm_admin do
actions only: %i[index show new create edit update destroy]
cm_index do
filter %i[title], :search, placeholder: "Search"
column :title
column :status, field_type: :badge, badge_class: { draft: "cm-badge-yellow", published: "cm-badge-green" }
end
end
What you getβ
- Views: index (table, card or kanban), show, new, edit and destroy pages.
- Fields and Filters & Search: field types, selects, badges, advanced filters, global search and saved views.
- Actions: custom, bulk and grouped actions, CSV imports and multi-step forms.
- Access Control: authentication, OTP login and role-based permissions.
- Features: auditing, comments, emails, webhooks, cron jobs, dashboards, Catalyst AI and an MCP server.
How these docs are organisedβ
| Section | Use it to |
|---|---|
| Getting Started | Install the gem and build your first admin page. |
| Views β Customization | Learn and configure one product area at a time. |
| Reference | Look up every DSL method, option and generator. |
| Upgrading | Apply the steps each release needs. |
| Release Notes | See what changed in every release. |
Working on the gem itself? See Contributing.
Demoβ
- Live demo: cm-admin.labs.commutatus.com
- Demo app source: commutatus/cm-admin-panel-demo