Description
Madmin is an admin interface for Ruby on Rails apps. The author built it to be familiar and customizable, like Rails scaffolds, with less of a DSL to learn. It supports Rails features out of the box, including Action Text, Active Storage, Action Mailbox and has_secure_password. The interface is built with Hotwire, Turbo, Stimulus and import maps, so there is no Node or build step. Index pages include search, filters and scopes, and dark mode is included. It works with both Propshaft and Sprockets asset pipelines. You install it by adding the gem to your Gemfile and running the Madmin generator, which creates resources for each model it finds. Each model is added through a Resource class, and the generator can create one for a new model. For N+1 query problems, the README shows how to preload associations by overriding the scoped_resource method in the controller. Rails developers who want an internal admin panel for their models are the intended audience.…
Highlights
- Admin interface for Rails models
- Search, filters and scopes on index pages
- Hotwire with no build step
- Works with Action Text and Active Storage
- Dark mode and N+1 query preloading
Ratings & Reviews
No ratings yet
Be the first to rate Madmin.
People also visit
Administrate
A Rails engine that helps you put together a super-flexible admin dashboard
Madmin FAQ
What is Madmin?
An admin interface for Ruby on Rails apps, built on Hotwire.
How do I install it?
Add the madmin gem to your Gemfile, then run the Madmin generator. It creates resources for your models.
Does it need Node?
No. The README says it uses import maps, with no Node or build step.
How do I fix N+1 queries?
Override the scoped_resource method in the controller to preload the association, as the README shows.
What are the best Madmin alternatives?
Popular alternatives to Madmin include Administrate, Adminjs and Sqladmin. See all Madmin alternatives
