CafeCar
๐ Live demo โ โ click straight into a real auto-generated admin (clients, invoices, articles, users, notes). No signup; the data resets periodically.
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
- README & full usage guide โ controllers, policies, presenters, components, forms, filtering.
- Changelog
- Contributing ยท Security policy
- Source on GitHub
Released under the MIT License.