activeadmin_addons
Formtastic
Our great sponsors
activeadmin_addons | Formtastic | |
---|---|---|
1 | 2 | |
739 | 5,196 | |
0.5% | 0.1% | |
5.9 | 4.8 | |
about 1 month ago | 23 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
activeadmin_addons
-
An Unofficial Active Admin Guide
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.
Formtastic
-
An Unofficial Active Admin Guide
All the parameters required to draw the form (including object and method) are passed to #initialize defined in the module Formtastic::Inputs::Base. The #to_html method is responsible for rendering the input.
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.
What are some alternatives?
Simple Form - Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.
Rails Bootstrap Forms - Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
Reform - Form objects decoupled from models.
ActiveForm - Create nested forms with ease.
Abracadabra
ComfyBootstrapForm - Rails form builder for Bootstrap 4 markup that actually works!
Cocoon - Dynamic nested forms using jQuery made easy; works with formtastic, simple_form or default forms
Arbre - An Object Oriented DOM Tree in Ruby
Countable - Add live paragraph-, word- and character-counting to an HTML element.
inherited_resources
ActiveAdmin - The administration framework for Ruby on Rails applications.
ransack - Object-based searching.