我们如何在 Simpleform 配置包装器中添加输入类?
我在下面尝试过,但似乎没有用
config.wrappers :horizontal, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
b.use :html5
b.use :placeholder
b.use :label
b.wrapper tag: 'div', class: 'col-lg-8' do |ba|
ba.use :input, my_wrapper_html: { class: 'form-control' }
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
ba.use :error, wrap_with: { tag: 'span', class: 'help-inline text-danger' }
end
end