Description
Simple Form is a Ruby gem that makes forms in Rails applications easier to build. It is tied to a simple DSL for describing fields, and it has no opinion about markup, so you keep control of the layout while using its components to create inputs, labels, hints and errors. Most of the DSL was inherited from Formtastic. The README covers installation with the install generator, which can add wrappers for Bootstrap 5 with a bootstrap option or for Zurb Foundation 5 with a foundation option. Country select is supported through a separate country_select gem, and it can be mapped to a different input if you prefer not to use that gem. The usage section describes collections, priorities, associations, buttons, wrapping Rails form helpers, collection radio buttons and check boxes, available input types for each column type, custom inputs and custom form builders. It also covers internationalization, configuration, the wrappers API for custom components, HTML 5 notices, and using non-Active Record objects. The README refers to Simple Form 5.0, and older releases have their own branches.…
Highlights
- Form DSL for Rails
- No opinion about markup
- Bootstrap 5 and Foundation wrappers
- Collections, associations and custom inputs
- Wrappers API for custom components
Ratings & Reviews
No ratings yet
Be the first to rate Simple Form.
People also visit
Former
A powerful form builder, for Laravel and other frameworks (stand-alone too)
Simple Form FAQ
What is Simple Form?
A Ruby gem that makes forms easier to build in Rails, with a DSL that leaves the markup to you.
How do I install it?
Add it to your Gemfile, then run the install command and the generator.
Does it work with Bootstrap?
Yes. Use the bootstrap option in the install generator to add Bootstrap 5 wrappers.
Can I change the markup?
Yes. Simple Form has no opinion on markup, and its wrappers API lets you define your own components.
What about country selects?
Use the country_select gem, or map the country inputs to something else in the initializer.
Which version does the README cover?
Simple Form 5.0. Older releases are in their own branches.
What are the best Simple Form alternatives?
Popular alternatives to Simple Form include Former, View Component Form and Laravel Form Builder. See all Simple Form alternatives




