Skip to content

Commit

Permalink
Preparing v5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
donv committed May 23, 2023
1 parent 92630bf commit 98a9812
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ /~https://github.com/bootstrap-ruby/bootstrap_form/releases
## Diffs

- [Pending Release](/~https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.2.0...HEAD)
- [5.2.1](/~https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.2.0...v5.2.1)
[Issues](/~https://github.com/bootstrap-ruby/bootstrap_form/issues?q=closed%3A2023-05-20T23%3A59..2023-05-23T10%3A00)
- [5.2.0](/~https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.1.0...v5.2.0)
[Issues](/~https://github.com/bootstrap-ruby/bootstrap_form/issues?q=closed%3A2022-06-25T17%3A22..2023-05-20T23%3A59)
- [5.1.0](/~https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.0.0...v5.1.0)
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ This generates:

### bootstrap_form_with

Note that `form_with` in Rails 5.1 does not add IDs to form elements and labels by default, which are both important to Bootstrap markup. This behaviour is corrected in Rails 5.2.

To get started, just use the `bootstrap_form_with` helper in place of `form_with`. Here's an example:

![Example 2](demo/doc/screenshots/bootstrap/readme/02_example.png "Example 2")
Expand Down Expand Up @@ -200,7 +198,7 @@ date_field password_field time_field
date_select phone_field time_select
datetime_field radio_button time_zone_select
datetime_local_field range_field url_field
datetime_select rich_text_area (Rails 6+) week_field
datetime_select rich_text_area week_field
```

By default, the helpers generate a `label` tag, and an `input`, `select`, or `textarea` tag, by calling the Rails `label` helper, and then the Rails helper with the same name as the `bootstrap_form` helper.
Expand Down Expand Up @@ -946,8 +944,6 @@ will be rendered as

## Rich Text Areas AKA Trix Editor

If you're using Rails 6, `bootstrap_form` supports the `rich_text_area` helper.

![Example 34](demo/doc/screenshots/bootstrap/readme/34_example.png "Example 34")
```erb
<%= f.rich_text_area(:life_story) %>
Expand Down
2 changes: 1 addition & 1 deletion lib/bootstrap_form/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module BootstrapForm
VERSION = "5.2.0".freeze
VERSION = "5.2.1".freeze
REQUIRED_RAILS_VERSION = ">= 6.0".freeze
end

0 comments on commit 98a9812

Please sign in to comment.