Does anyone know how to change the class simple_form uses from 'controls' to 'form-control'. This was a change made in Bootstrap 3. I know there are many options in config/initializers/simple_form.rb and config/initializers/simple_form_bootstrap.rb but I can't find what I need.
config.wrappers :bootstrap, :tag => 'div', :class => 'control-group', :error_ class => 'error' do |b|
b.use :html5
b.use :placeholder
b.use :label
b.wrapper :tag => 'div', :class => 'controls' do |ba|
ba.use :input
ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
end
end
in the above you can swap out 'control-group' for 'form-group', but I see no way to change the class for the input tag.
ba.use :input, :wrap_with => { :class => 'form-control' }
? – hawkconfig.input_class = 'form-control'
default class for inputs – hawk