Skip to content
CAI
Software that uses CAICheck a score

bootstrap-ruby/bootstrap_form

59.0

Adequate · 6 November 2026

2.1k

lines of production code

Ruby

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Automated CI commit task for generated files

A new Rake task (\commit\) has been added to the demo library to support CI workflows. This task automatically commits and pushes any changed files (such as generated screenshots) using a dedicated GitHub Actions identity, including a message that prompts reviewers to verify the changes and revert them if necessary.

demo/lib · high confidence

Demo app adds Bootstrap 5 form layout examples

The demo application now includes a new view demonstrating various Bootstrap 5 form layouts, including horizontal, inline, and validation error states. It showcases updated form helpers such as \rich\_textarea\ for Action Text support and \floating\ labels, along with proper namespace usage for form elements.

demo/app/views/bootstrap · high confidence

Demo app adds Bootstrap helper for form source code preview

The demo application now includes a new BootstrapHelper that wraps forms in a div to display a toggleable source code view. Users can click the 'Toggle Source Code' button to see the beautified HTML of the form, which is useful for understanding the generated markup in the demo context.

demo/app/helpers · high confidence

Introduce Docker-based development environment

Developers can now use Docker Compose and VS Code Dev Containers to run the project and its demo application in an isolated, consistent environment. This change adds configuration files (\.devcontainer.json\, \compose.yml\, \DOCKER.md\) and updates the contributing documentation to support this workflow, simplifying local setup and ensuring test reproducibility across different host operating systems.

(repo-wide) · high confidence

New Bootstrap form helper methods for ActionView

The library now provides dedicated form helper methods (\bootstrap\_form\_for\, \bootstrap\_form\_with\, \bootstrap\_form\_tag\, \bootstrap\_fields\_for\, and \bootstrap\_fields\) that wrap standard Rails form builders with the BootstrapForm builder. These helpers automatically configure the form builder and temporarily set a custom field error proc to ensure consistent Bootstrap styling for form inputs and validation errors.

_lib/bootstrap\_form/action\_view\extensions · high confidence

Architecture

BootstrapForm restructured as a Rails engine with new module organization

The library has been refactored from a simple module into a proper Rails engine, replacing the legacy \FormBootstrap\ module and removing obsolete rake tasks. This change introduces a centralized \BootstrapForm\ module that manages autoloading for components, inputs, and helpers, while also exposing configuration options and a deprecation mechanism for users. The shift to an engine structure ensures better integration with Rails' loading paths and prepares the library for future modular updates.

lib · high confidence

Behavioural changes

14 commits (3 fixes) modifying bootstrap\_form

A change to existing behaviour in bootstrap\_form — 14 commits (3 fixs), 4 files: “Add Rubocop linting to CI and make source files pass linting. (\#486)”; “Add example images to README.md (\#635)”; “Added examples for check box /radio button collections with inline errors to the README.md Fixes \#655”; and 11 more (refs \#486, \#635, \#655, \#702, \#669, …).

_bootstrap\form · medium confidence · unverified

9 commits (2 fixes) modifying demo/app/models

A change to existing behaviour in demo/app/models — 9 commits (2 fixs), 3 files: “Add Rubocop linting to CI and make source files pass linting. (\#486)”; “Add a couple of skills to the example data”; “Add example images to README.md (\#635)”; and 6 more (refs \#486, \#635, \#726).

demo/app/models · medium confidence · unverified

Bootstrap 5 migration and helper restructuring

The library has been updated to support Bootstrap 5, which involves moving helper logic into a new \lib/bootstrap\_form/helpers\ directory structure (specifically \bootstrap.rb\ and \field.rb\). This change introduces new helper methods such as \static\_control\ for read-only plaintext fields, \custom\_control\ for custom form controls, and \prepend\_and\_append\_input\ for managing input group addons. The \alert\_message\ helper now supports an \error\_summary\ option to toggle the rendering of error lists, and the \errors\_on\ helper allows hiding the attribute name via \hide\_attribute\_name\. Additionally, required field handling has been refactored to use a \:required\ option instead of the deprecated \:skip\_required\ flag.

_lib/bootstrap\form/helpers · high confidence

Bootstrap 5.6.1 release with Rails 7.2+ support

This update bumps the gem to version 5.6.1 and raises the minimum supported Rails version to 7.2, dropping support for older Rails releases. The release includes a comprehensive architectural overhaul of the form builder, introducing a modular structure with separate modules for components (hints, labels, layout, validation) and inputs. It also adds a new configuration system via \BootstrapForm.config\ and deprecates the legacy \default\_form\_attributes\ setter, while ensuring the engine properly registers the deprecator for Rails applications.

_lib/bootstrap\form · high confidence

Default date/time select widths and error summary styling

The \rails\_bootstrap\_forms.css\ stylesheet now explicitly sets date, time, and datetime select elements to \display: inline-block\ with \width: auto\, ensuring these controls do not stretch to full width by default. Additionally, a new \.rails-bootstrap-forms-error-summary\ class is defined with a top margin of 10px to provide spacing for error summary blocks.

app/assets · high confidence

Demo app asset manifest configuration

The demo application now includes a manifest configuration file that explicitly links the images directory and the builds directory, ensuring these assets are correctly processed and served.

demo/app/assets/config · medium confidence

Demo app configuration updated for Rails 7.1 and Bootstrap Form defaults

The demo application's configuration has been updated to align with Rails 7.1 standards and specific library defaults. The \bootstrap\_form\ initializer now explicitly sets \group\_around\_collections\ to true, changing how form collections are rendered. Asset configuration has been adjusted to include Bootstrap Icons in the load path, and the cookies serializer is set to JSON. Additionally, the demo directory structure has been consolidated by moving initializers from the test dummy app, and legacy settings like the JSON root element inclusion for ActiveRecord have been commented out to reflect modern defaults.

demo/config/initializers · high confidence

Demo app controllers reorganized and modernized

The demo application's controller structure has been updated: the base ApplicationController has been moved from the test dummy directory to the main demo folder and updated to use the modern \protect\_from\_forgery\ syntax. New controllers, BootstrapController and UsersController, have been added to support the demo's form examples, with BootstrapController providing pre-populated model instances (including those with validation errors) for rendering various UI states.

demo/app/controllers · high confidence

Demo app environment configurations updated to Rails 8 defaults

The demo application's development, production, and test environment configurations have been replaced with new files reflecting modern Rails defaults. Key changes include the adoption of \config.enable\_reloading\ for controlling code reloading, explicit \config.eager\_load\ settings, and updated Action Mailer defaults (such as \default\_url\_options\ and delivery methods). The production config now enforces SSL, uses STDOUT logging with request ID tags, and disables schema dumping, while the test config configures a null cache store and rescuable exception handling.

demo/config/environments · high confidence

Demo app layout refresh with CodeMirror integration

The demo application's layout structure has been updated to support richer content display and code preview capabilities. A new layout for Action Text contents was added to wrap content in a Trix editor container, while the main application layout now includes the CodeMirror library (version 5.33.0) via CDN. This enables interactive code snippets within the demo, allowing users to toggle between rendered examples and their underlying HTML source code with syntax highlighting.

demo/app/views/layouts · high confidence

Demo app refreshed to Rails 7.0 with modern asset pipeline

The demo application has been upgraded to Rails 7.0 and restructured from \test/dummy\ to a standalone \demo\ directory. This update introduces a modern JavaScript asset pipeline using Webpacker and Yarn, replacing the previous setup with new configuration files for development, production, and test environments. The app now utilizes the \trix\ editor via \@rails/actiontext\, integrates Bootstrap, and supports Action Cable for WebSocket features. Additionally, the Ruby version requirement has been updated to 3.2.7, and the application structure now includes dedicated directories for JavaScript packs, channels, and asset builds, providing a more current reference implementation for users.

demo · high confidence

Demo app restructured to Rails 7.1 with updated configuration

The demo application has been migrated to Rails 7.1, introducing a new configuration structure in the \demo/config\ directory. This includes a new \application.rb\ that loads Rails 7.1 defaults and conditionally enables \autoload\_lib\, a \boot.rb\ that integrates Bootsnap for faster startup, and a \ci.rb\ script that adds security audits (Importmap, Brakeman) alongside test steps. The database configuration (\database.yml\) has been refactored to use a shared default block for SQLite settings, and the app now includes standard Rails configuration files for Puma, Cable, Storage, and Webpacker, replacing the previous \test/dummy\ layout.

demo/config · high confidence

Demo app scaffolding and development tooling

The demo application now includes a complete set of executable binstubs in \demo/bin\ (such as \rails\, \puma\, \webpack\, and \setup\) to streamline local development and dependency management. Additionally, standard Rails error pages (400, 404, 422, 500) and static assets have been added to \demo/public\, and the favicon has been moved from the test dummy to the demo directory.

demo/bin · high confidence

Demo app styles updated for Bootstrap 5 and Action Text support

The demo application's stylesheet configuration has been updated to use Bootstrap 5, replacing the previous version with a new \application.bootstrap.scss\ that imports Bootstrap 5 and Bootstrap Icons. Additionally, new stylesheets for Action Text (\actiontext.css\ and \actiontext.scss\) have been added to properly format the Trix editor and fix image gallery layout issues within attachment galleries. The base \application.scss\ retains existing utility styles for required form labels and fragment borders.

demo/app/assets/stylesheets · high confidence

Refactored form component logic into modular concerns

The form rendering logic in \lib/bootstrap\_form/components\ has been reorganized into four distinct modules: \Hints\ (handling help text and i18n lookups), \Labels\ (managing label classes, text, and error integration), \Layout\ (determining horizontal, inline, or vertical layouts), and \Validation\ (checking for presence validators, association errors, and generating error messages). This change improves code maintainability by separating concerns without altering the external API or user-facing behavior of the form builder.

_lib/bootstrap\form/components · high confidence

Refactored form inputs into modular components with Bootstrap 5 styling and Rails 8 compatibility

The form input helpers in lib/bootstrap\_form/inputs have been reorganized into individual, maintainable modules (e.g., check\_box.rb, select.rb, text\_field.rb) that apply Bootstrap 5 CSS classes (such as form-select, form-check, and form-range) to standard Rails form helpers. This change introduces support for append/prepend wrappers on collection\_select, adds a :vertical layout option (deprecating the previous :default), and ensures compatibility with Rails 8 by aliasing new helper names like checkbox and textarea. Users will see improved accessibility through proper ARIA attributes and consistent Bootstrap 5 styling across all form elements.

_lib/bootstrap\form/inputs · high confidence

Removal of version constant file

The \lib/form-bootstrap/version.rb\ file, which previously defined the \FormBootstrap::VERSION\ constant as "0.0.1", has been deleted from the library. This change removes the explicit version tracking mechanism for the form-bootstrap component.

lib/form-bootstrap · high confidence

Updated demo database schema for Active Storage and Action Text compatibility

The demo application's database schema has been updated to align with modern Rails Active Storage and Action Text requirements. This includes adding the \service\_name\ column to \active\_storage\_blobs\ to support configurable storage services, creating the \active\_storage\_variant\_records\ table to handle image variants, and allowing null checksums on blobs. The schema also includes the \action\_text\_rich\_texts\ table for rich text content. These changes ensure the demo app correctly supports file uploads and rich text editing features.

demo/db · high confidence

Fixes

Fix demo app asset directory structure

The placeholder file for the demo application's image assets has been moved from the test dummy models directory to the correct demo app assets location, ensuring the directory structure is properly maintained for the demo application.

demo/app/assets/images · high confidence

Test coverage

Added integration tests for demo controllers; Added system tests for Bootstrap form rendering and README example validation; Added test coverage for Bootstrap 5 form components and helpers; Dockerized system test infrastructure with screenshot diffing; Removed legacy Rails 3 dummy application scaffold.

Dependencies

Add gemfiles for Rails 7.2, 8.0, 8.1, and edge to support testing

The gemfiles directory now includes dedicated lockfiles for Rails 7.2, 8.0, 8.1, and the Rails main branch (edge), enabling the project to be tested against these specific versions. The 8.0 and 8.1 configurations use Propshaft for asset management, while 7.2 continues to use Sprockets. A common.gemfile centralizes shared test and development dependencies, and specific gems like json are pinned for Rails 8.0 compatibility.

gemfiles · high confidence

Upgrade demo app to Rails 8.1 and Bootstrap 5.3

The demo application has been upgraded to Rails 8.1 (via @rails/actioncable, @rails/actiontext, and @rails/activestorage) and Bootstrap 5.3.2, along with updated tooling like esbuild 0.19.5 and sass 1.77.6. The gemspec now requires Ruby \>= 3.2 and depends on the current Rails version, while the main Gemfile has been refactored to use cssbundling-rails and jsbundling-rails with propshaft, replacing the previous Rails 3.1-era setup.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 58 → 59 (+1.3)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 75 → 75 (+0.0)
  • Architecture 92 → 92 (+0.0)
  • Maturity 52 → 58 (+5.6)
  • Readiness 44 → 44 (+0.0)
  • Security 95 → 93 (-2.5)
  • Domain Modelling 100 → 100 (+0.0)

Resolved (2)

  • Off-boarding risk: anonymized user #1
  • Redundant naming for identical intent. Both methods appear to generate a submit button element. 'button' is generic and could imply a reset or custom button, while 'submit' is specific. In the context of form inputs, having two methods for the same visual element creates confusion about when to use which.

New (1)

  • Off-boarding risk: anonymized user #1

Changes since last survey

  • 2 commits — 2 feature/other, 0 fixes

By area

  • (repo) — 1 commit
  • (root) — 1 commit

Notable commits

  • change: Add v6 to contributing doc
  • change: Merge pull request #805 from lcreid/contributing-v6

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

bootstrap-ruby/bootstrap_form was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit bf07f588054378805f37381a40f55faf6f181c09 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.2+preprod-5c4e66d9318b.