diff --git a/README.md b/README.md index 6bd40fda..5d868003 100644 --- a/README.md +++ b/README.md @@ -1573,12 +1573,12 @@ By default, turning on `:label_errors` will also turn off To display an error message with an error summary, you can use the `alert_message` helper. This won't output anything unless a model validation -has failed. +has failed, and additional options will be passed on as attributes to the root `div`:  ```erb <%= bootstrap_form_for @user_with_error do |f| %> - <%= f.alert_message "Please fix the errors below." %> + <%= f.alert_message "Please fix the errors below.", tabindex: -1, role: "note" %> <% end %> ``` @@ -1586,7 +1586,7 @@ Which outputs: ```html