Arbre
Formtastic
Our great sponsors
Arbre | Formtastic | |
---|---|---|
3 | 2 | |
745 | 5,196 | |
0.1% | 0.1% | |
8.6 | 4.8 | |
8 days 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.
Arbre
-
Anyone tried Django? How does it compare to RoR?
Why use ActiveAdmin or RailsAdmin: Brick is not nearly as configurable -- at least yet! With Brick you can drop in your own model / controller / view template and it will use it, but on its own you can not change theming / use it to do templating tricks / etc. Currently working hard to arrive upon a straightforward and logical approach so that all of this will be possible. Looking into Arbre (used by ActiveAdmin) and Phlex for inspiration.
-
View code coverage (active_admin and orther .arb file)
for those who know [https://activeadmin.info/](https://activeadmin.info/) it uses a file format [https://github.com/activeadmin/arbre](https://github.com/activeadmin/arbre)
-
An Unofficial Active Admin Guide
Like all Arbre components, our Admin::Components::HelloWorld inherits from Arbre::Component class:
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.
Haml - HTML Abstraction Markup Language - A Markup Haiku
Tilt - Generic interface to multiple Ruby template engines
Fortitude - Views Are Code: use all the power of Ruby to build views in your own language.
Liquid - Liquid markup language. Safe, customer facing template language for flexible web apps.
Abracadabra
Curly - The Curly template language allows separating your logic from the structure of your HTML templates.
Hamlit - High Performance Haml Implementation
ComfyBootstrapForm - Rails form builder for Bootstrap 4 markup that actually works!