-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_box ignores help #316
Comments
Yes, this is a bit tricky due to how check boxes are rendered by Bootstrap. To display help and error message for a check box you need to wrap it in a <%= f.form_group :stuff do %>
<%= f.check_box :stuff, help: "Provides stuff" %>
<% end %> This is already documented in the README, here: https://github.com/bootstrap-ruby/rails-bootstrap-forms#checkboxes-and-radios |
@mattbrictson 's answer is a bit wrong in that the help option needs to be on the form group not on the checkbox. But it is documented as he has stated. |
Thanks, @nodrog. We had a lot of challenges with the positioning of help and errors for Bootstrap 4, since it changed in significant ways. See #418, #419, #436, #448, #444, #454, etc. I think we have it right now, but if you're seeing wrong behaviour, please let us know how to reproduce the problem, and we'll look at it. |
does not render the help text.
The text was updated successfully, but these errors were encountered: