Our great sponsors
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.
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.
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
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:
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.
Add live paragraph-, word- and character-counting to an HTML element.
An Object Oriented DOM Tree in Ruby
Like all Arbre components, our Admin::Components::HelloWorld inherits from Arbre::Component class:
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.
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
View code coverage (active_admin and orther .arb file)
2 projects | /r/rails | 14 Sep 2022
Eager to help a Junior without experience?
1 project | /r/rails | 8 Jan 2022
Case study on Ruby Gem Contribution: activeadmin-mongoid
2 projects | dev.to | 26 Jun 2021
Quick Activeadmin Cheat Sheet
1 project | dev.to | 11 May 2021
RoR and React CORS 401 Unauthorized Issue
3 projects | /r/rails | 5 Apr 2021