A Rails form builder gem that simplifies creating Bootstrap 5 styled forms with built-in validation and accessibility.
bootstrap_form is a Rails gem that provides form builder helpers to easily create Bootstrap 5 styled forms. It automatically generates the required HTML markup, handles validation errors, and supports various form layouts, reducing the manual effort needed to integrate Bootstrap with Rails forms.
Rails developers building web applications with Bootstrap 5 who want to create consistent, accessible forms quickly without writing repetitive HTML markup.
It saves development time by eliminating Bootstrap boilerplate, ensures accessibility compliance, and reduces errors through standardized markup, all while staying true to Rails form helper conventions.
Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Generates all necessary Bootstrap 5 HTML structure for forms automatically, reducing boilerplate code and ensuring consistent styling, as shown in the README examples with minimal ERB code.
Displays Rails validation errors inline with Bootstrap-styled error messages and red outlines, improving user experience without manual CSS work.
Includes proper ARIA attributes, screen reader labels, and configurable fieldset/legend for collections, promoting accessible forms out of the box.
Supports vertical, horizontal, and inline form layouts with customizable grid classes, allowing easy adaptation to different design needs.
Requires Ruby 3.2+, Rails 7.2+, and Bootstrap 5.0+, making it incompatible with legacy projects or those using older frameworks without upgrades.
Collection helpers like collection_check_boxes do not support block syntax, limiting customization for complex collections compared to standard Rails helpers, as noted in issue #477.
Requires manual inclusion of bootstrap_form's CSS styles for helpers like error_summary and date_select, adding an extra step to setup and potential for oversight.