Skip to content
A Rails engine that helps you put together a super-flexible admin dashboard.
Ruby HTML CSS Other
Branch: master
Clone or download

Latest commit

efatsi Recursively handle polymorphic parameters (#1648)
When submitting changes to models with polymorphic nested parameters, we
previously weren't handling all of the parameters through the data
structure given to us. This ensures we do that by doing it recursively.

Fixes nickcharlton/administrate-field-nested_has_many#38
Latest commit 8bff96f May 29, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Drop support for Ruby 2.4 Sep 10, 2019
.github/ISSUE_TEMPLATE
app Recursively handle polymorphic parameters (#1648) May 29, 2020
bin Add Appraisal install to the setup script (#1621) Apr 29, 2020
config Translate "Back to app" label (#1651) May 22, 2020
docs Allow overriding default sorting (#1644) May 27, 2020
gemfiles Update Appraisal Capybara from 3.31.0 to 3.32.1 (#1612) Apr 16, 2020
lib Support for searching over multiple fields (#1203) Apr 30, 2020
spec Recursively handle polymorphic parameters (#1648) May 29, 2020
.gitignore Add `.byebug_history` and `gemfiles/.bundle/` to .gitignore (#1145) Apr 20, 2018
.hound.yml Update rubocop configuration file to run locally Feb 14, 2016
.rspec Remove the fuubar gem Apr 19, 2016
.ruby-version Upgrade Ruby to 2.6.3. (#1330) Apr 23, 2019
.sample.env New suspenders app Feb 20, 2015
.scss-lint.yml Update normalize.css and change how we include it (#882) May 19, 2017
Appraisals Test against Rails 6.0.0rc1 May 6, 2019
CHANGELOG.md Release version 0.13.0 Mar 13, 2020
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md (#915) Jun 20, 2017
CONTRIBUTING.md Provide <title> tags for doc pages (#1537) Feb 18, 2020
Gemfile Bump capybara from 3.32.1 to 3.32.2 (#1653) May 18, 2020
Gemfile.lock Bump kaminari from 1.2.0 to 1.2.1 (#1659) May 28, 2020
LICENSE.md Update copyright notice to 2019 [ci skip] (#1278) Apr 19, 2019
Procfile Remove worker from Procfile (#854) May 3, 2017
README.md Fix unterminated single quote (#1565) Mar 4, 2020
Rakefile Improve heroku deploy workflow Nov 6, 2015
administrate.gemspec Drop active_job from the dependencies (#1331) Sep 10, 2019
app.json Fix the app.json which was breaking Review Apps Jan 2, 2020
config.ru Improve heroku deploy workflow Nov 6, 2015

README.md

title home
Administrate
true

CircleCI Gem Version Code Climate Reviewed by Hound

A framework for creating flexible, powerful admin dashboards in Rails. Try the demo.

Warning:

Administrate is still pre-1.0, and there may be occasional breaking changes to the API. Check the release notes for important updates.

administrate

What Is Administrate?

Administrate is a library for Rails apps that automatically generates admin dashboards. Administrate's admin dashboards give non-technical users clean interfaces that allow them to create, edit, search, and delete records for any model in the application.

Administrate solves the same problem as Rails Admin and ActiveAdmin, but aims to provide a better user experience for site admins, and to be easier for developers to customize.

To accomplish these goals, Administrate follows a few guiding principles:

  • No DSLs (domain-specific languages)
  • Support the simplest use cases, and let the user override defaults with standard tools such as plain Rails controllers and views.
  • Break up the library into core components and plugins, so each component stays small and easy to maintain.

Getting Started

Administrate supports Rails from 4.2, up to 5.0 and beyond. We support Ruby 2.4 and up.

Add Administrate to your Gemfile and re-bundle:

gem "administrate"

The included installer will create dashboards for each model in your app, complete with routes:

$ rails generate administrate:install

Restart your server, and visit http://localhost:3000/admin to see your new dashboard in action.

For more detailed instructions or to make it work with Rails API-only applications, please go through the 'Getting Started' guide.

If your apps uses Sprockets 4, you'll need to add Administrate's assets to your manifest.js file. To do this, add these two lines to the file:

//= link administrate/application.css
//= link administrate/application.js

Otherwise, your app will show you this error:

Asset `administrate/application.css` was not declared to be precompiled in production.
Declare links to your assets in `app/assets/config/manifest.js`.

For more information on why this is necessary, see https://www.schneems.com/2017/11/22/self-hosted-config-introducing-the-sprockets-manifestjs

Create Additional Dashboards

In order to create additional dashboards, pass in the resource name to the dashboard generator. A dashboard and controller will be created.

$ rails generate administrate:dashboard Foo

Documentation

To customize the appearance, behavior, and contents of the dashboard, see the guides at https://administrate-prototype.herokuapp.com. These guides are available as markdown files in the docs subdirectory of the git repository, too.

Contributing

Please see CONTRIBUTING.md.

administrate was originally written by Grayson Wright and is now maintained by Nick Charlton. Many improvements and bugfixes were contributed by the open source community.

License

administrate is Copyright © 2015-2019 thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About thoughtbot

thoughtbot

administrate is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc.

We love open source software! See our other projects or hire us to design, develop, and grow your product.

You can’t perform that action at this time.