All Versions
20
Latest Version
Avg Release Cycle
131 days
Latest Release
896 days ago

Changelog History
Page 1

  • v5.0.0 Changes

    November 11, 2021

    ๐Ÿ’ฅ Breaking changes

    • Generates markup for Bootstrap 5.

    ๐Ÿ†• New features

    • ๐Ÿ’… #572: Simplify the formatting of the file upload control to follow the new Bootstrap 5 styles
    • ๐Ÿ’Ž #573: Add support for Bootstrap 5's floating labels

    ๐Ÿ›  Bugfixes

    • ๐Ÿšš #582: Fix tests in bootstrap-5 branch, removes Rubocop offenses, and adds testing with Rails 6.1.
  • v5.0.0.alpha1 Changes

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿšš [#569] Remove role="form" from the default generated form HTML so forms pass W3C validation. (Only a breaking change if you depended on the form attribute. bootstrap_form doesn't depend on it.)

    ๐Ÿ†• New features

    • Your contribution here!

    ๐Ÿ›  Bugfixes

    • โœ… #586: Fix Rails 6.1 tests on master - @thimo.
    • #587: Replace strip_heredoc with <<~ - @thimo.
  • v4.5.0 Changes

    April 29, 2020

    ๐Ÿ†• New features

    • ๐Ÿ”ง #562: Allow to configure default form attributes - @sharshenov.
  • v4.4.0 Changes

    March 08, 2020

    ๐Ÿ†• New features

    • ๐Ÿ’Ž #557: Allow prepending and appending multiple items to an input by passing an array to prepend and append options - @donv.
    • 0๏ธโƒฃ #550: Add default_layout so we can use it for all forms - @duleorlovic.

    ๐Ÿ›  Bugfixes

    • Your contribution here!
  • v4.3.0 Changes

    March 08, 2019

    ๐Ÿ†• New features

    • ๐Ÿ’Ž [#503] Support Rails 6.0.0.
    • ๐Ÿ“š Small documentation changes.
  • v4.2.0 Changes

    March 08, 2019

    ๐Ÿ†• New features

    • ๐Ÿ‘ [#508] Support rich_text_area AKA the Trix editor on Rails 6+.
    • ๐Ÿšš [#518] Move all inputs to separate, more maintainable files.
    • ๐Ÿ’Ž #514: Add support for BS 4.2 switches - @simmerz

    ๐Ÿ›  Bugfixes

    • ๐Ÿ’Ž #522: Clean up rubocop offences - @simmerz
    • ๐Ÿ’Ž #524: Fix non-inline layout rendering without help text - @simmerz
  • v4.1.0 Changes

    January 19, 2019

    ๐Ÿ†• New features

    • ๐Ÿ’Ž [#259] Allow to render input without wrapper [@yevhene].

    ๐Ÿ›  Bugfixes

    • ๐Ÿ’Ž [#496] Ensure required attribute is passed through to input tag.
  • v4.0.0 Changes

    October 27, 2018

    ๐Ÿฑ ๐Ÿšจ This release adds support for Bootstrap v4 and drops support for Bootstrap v3. ๐Ÿšจ

    If your app uses Bootstrap v3, you should continue using bootstrap_form 2.7.x instead.

    ๐Ÿ“„ Bootstrap v3 and v4 are very different, and thus bootstrap_form now produces different markup in order to target v4. The changes are too many to list here; you can refer to Bootstrap's Migrating to v4 page for a detailed explanation.

    ๐Ÿš€ In addition to these necessary markup changes, the bootstrap_form API itself has the following important changes in this release.

    ๐Ÿ’ฅ Breaking changes

    ๐Ÿ†• New features

    • ๐Ÿ’Ž [#476] Give a way to pass classes to the div.form-check wrapper for check boxes and radio buttons - @lcreid.
    • 0๏ธโƒฃ 461: default form-inline class applied to parent content div on date select helpers. Can override with a :skip_inline option on the field helper - @lancecarlson.
    • The button, submit, and primary helpers can now receive an additional option, extra_class. This option allows us to specify additional CSS classes to be added to the corresponding button/input, while maintaining the original default ones. E.g., a primary button with an extra_class 'test-button' will have its final CSS classes declaration as 'btn btn-primary test-button'.

    ๐Ÿ›  Bugfixes

    • #347 Fix wrapper_class and wrapper options for helpers that have html_options.
    • ๐Ÿ’Ž #472 Use id option value as for attribute of label for custom checkboxes and radio buttons.
    • ๐Ÿ’Ž #478 Fix offset for form group without label when multiple label widths are specified.
  • v4.0.0.alpha1 Changes

    June 16, 2018

    ๐Ÿฑ ๐Ÿšจ This release adds support for Bootstrap v4 and drops support for Bootstrap v3. ๐Ÿšจ

    If your app uses Bootstrap v3, you should continue using bootstrap_form 2.7.x instead.

    ๐Ÿ“„ Bootstrap v3 and v4 are very different, and thus bootstrap_form now produces different markup in order to target v4. The changes are too many to list here; you can refer to Bootstrap's Migrating to v4 page for a detailed explanation.

    ๐Ÿš€ In addition to these necessary markup changes, the bootstrap_form API itself has the following important changes in this release.

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿš… Rails 4.x is no longer supported
    • ๐Ÿ’Ž Ruby 2.2 or newer is required
    • ๐Ÿšš Built-in support for the nested_form gem has been completely removed
    • ๐Ÿ‘ The icon option is no longer supported (Bootstrap v4 does not include icons)
    • The deprecated Rails methods check_boxes_collection and radio_buttons_collection have been removed
    • hide_label: true and skip_label: true on individual check boxes and radio buttons apply Bootstrap 4 markup. This means the appearance of a page may change if you're upgrading from the Bootstrap 3 version of bootstrap_form, and you used check_box or radio_button with either of those options
    • static_control will no longer properly show error messages. This is the result of bootstrap changes.
    • static_control will also no longer accept a block, use the value option instead.
    • โฌ†๏ธ form_group with a block that produces arbitrary text needs to be modified to produce validation error messages (see the UPGRADE-4.0 document). @lcreid.
    • form_group with a block that contains more than one check_box or radio_button needs to be modified to produce validation error messages (see the UPGRADE-4.0 document). @lcreid.
    • #456: Fix label for attribute when passing non-english characters using collection_check_boxes - @ug0.
    • #449: Bootstrap 4 no longer mixes in .row in .form-group. bootstrap_form adds .row to div.form-group when layout is horizontal.

    ๐Ÿ†• New features

    • ๐Ÿ‘Œ Support for Rails 5.1 form_with - @lcreid.
    • ๐Ÿ‘Œ Support Bootstrap v4's Custom Checkboxes and Radios with a new custom: true option
    • ๐Ÿ‘ Allow HTML in help translations by using the _html suffix on the key - @unikitty37
    • ๐Ÿ’Ž #408: Add option[:id] on static control #245 - @duleorlovic.
    • ๐Ÿ’Ž #455: Support for i18n :html subkeys in help text - @jsaraiva.
    • Adds support for label_as_placeholder option, which will set the label text as an input fields placeholder (and hiding the label for sr_only).
    • 0๏ธโƒฃ #449: Passing .form-row overrides default .form-group.row in horizontal layouts.
    • Added an option to the submit (and primary, by transitivity) form tag helper, render_as_button, which when truthy makes the submit button render as a button instead of an input. This allows you to easily provide further styling to your form submission buttons, without requiring you to reinvent the wheel and use the button helper (and having to manually insert the typical Bootstrap classes). - @jsaraiva.
    • Add :error_message option to check_box and radio_button, so they can output validation error messages if needed. @lcreid.

    ๐Ÿ›  Bugfixes

    • ๐Ÿ’Ž #357 if provided,
      ๐Ÿ‘‰ use html option id to specify for attribute on label
      @duleorlovic
  • v2.7.0 Changes

    April 21, 2017

    ๐Ÿ”‹ Features:

    • ๐Ÿ’Ž #325: Support :prepend and :append for the select helper - @donv.