Skip to the content.

CafeCar

CI Gem Version License: MIT

๐Ÿš€ Live demo โ†’ โ€” click straight into a real auto-generated admin (clients, invoices, articles, users, notes). No signup; the data resets periodically.

CafeCar's auto-generated admin: an invoices index with sortable columns, currency formatting, association links, sender avatars, and pagination โ€” all rendered straight from the model with no view code.

A complete admin index โ€” sortable columns, formatted values, association links, and pagination โ€” auto-generated from a model with one line of controller code. Try the live demo โ†’

CafeCar is a Rails engine that auto-generates CRUD admin UI from your models โ€” complete index, show, new, and edit interfaces with no boilerplate. Sensible defaults cover authorization, presenters, filtering, keyword search, sorting, pagination, CSV export, and Hotwire-ready forms, and every default can be overridden application-wide or per model.

Perfect for admin panels, internal tools, and rapid prototyping.

Install

# Gemfile
gem "cafe_car"
$ bundle install
$ rails generate cafe_car:install

One line to a full CRUD interface

class ProductsController < ApplicationController
  cafe_car
end

That single line gives you all seven RESTful actions, Pundit authorization, filtering, keyword search, sorting, pagination, CSV export, and JSON / HTML / Turbo Stream responses. Or scaffold a complete resource at once:

$ rails generate cafe_car:resource Product name:string price:decimal description:text

Learn more


Released under the MIT License.