bootstrap_form
bootstrap_form copied to clipboard
Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
We add the `disabled` class to disabled radio buttons, but not check boxes. [This](https://www.bootply.com/HKHhdyqLYD) shows that it doesn't seem to be needed. Having `disabled="disabled"` in the input is enough for...
Hi. Russian is a fairly complex language, and russian rails community adopted a hack to achieve human readable complex validation messages. The thing is to drop attribute name and wrote...
PR #367 wasn't ready to be merged. ```ruby def input_group_content(content) return content if content.match(/btn/) content_tag(:span, content, class: 'input-group-text') end ``` `content.match` is there to sniff if content possibly has ``,...
Suppose a have a model Class A < ApplicationRecord end with attributes id and title and a model Class B < ApplicationRecord belongs_to :a validates_presence_of :a end and a form...
Why was it separated out? I was looking where `form.submit` was because I assumed it also was victim of `submit_without_bootstrap`. It was spared because it lived in a separate module...
I would like to start documenting some of the methods I'm working on, simply to help me keep track of what a method is supposed to do. It seems to...
`BootstrapForm::Aliasing` needs to go. There's a reason why Rails ditched this meta-programming hackiness. The thing is, you can live without it. Observe: ```erb ``` All you need to do is...
Right now `form_for` is being polluted with options like `:layout`, `:label_col` and friends. And all of those are getting passed in into `super` call. Not great. Options for helpers are...
I had a use case today where I wanted to append asterisks after the required inputs. Best way I can think to handle use cases like this is to simply...
I have a huge complicated form which contains with multiple subforms(in some loops) with **custom** namings and etc... I process data and validate each model and extract the following error...