An Unofficial Active Admin Guide

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • ActiveAdmin

    The administration framework for Ruby on Rails applications.

  • Now, have a look at what we have added. input_html_options is a parent class method, which returns HTML attributes for the input. builder - is an instance of the class ActiveAdmin::FormBuilder, inherited from ActionView::Helpers::FormBuilder. template is the context in which the templates are executed (basically, a huge set of view-helpers). Thus, if we need to create a piece of form, we'll call builder. While if we want to use something like link_to, template will help us.

  • ransack

    Object-based searching.

  • First of all, you should take a look at Active Admin's documentation regarding filters. You can continue your overview with the official README and wiki, where, among other things, you can find view-helpers to create custom search forms.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • inherited_resources

  • All Active Admin controllers are inherited from InheritedResources::Base, which means that we can modify their behavior using library methods. For example, here is how the list of available controller actions is defined:

  • Formtastic

    A Rails form builder plugin with semantically rich and accessible markup.

  • In the example, Formtastic automatically extracts all attributes from the passed object and inserts them into a form with default input types. A list of available input types can be found in the README. Like Arbre, Formtastic can be extended by creating custom component classes. To understand the basics, we'll create a hello world component.

  • Countable

    Add live paragraph-, word- and character-counting to an HTML element.

  • Say we have received a request from our blog editor: when writing a post, he would like to see the number of words directly in the input form. As you know, the world of JavaScript has libraries for everything, and there is one for our task too: Countable.js. Let's take the standard input for text (textarea) and extend it with a word counter.

  • Arbre

    An Object Oriented DOM Tree in Ruby

  • Like all Arbre components, our Admin::Components::HelloWorld inherits from Arbre::Component class:

  • activeadmin_addons

    Extends ActiveAdmin to enable a set of great optional UX improving add-ons

  • Formtastic is a pretty big library, and I would highly recommend reading the detailed README to get acquainted with all customization options. It will also be useful to see the already mentioned activeadmin_addons gem. There are lots of additional inputs in this library that are worth being checked out.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts