Skip to content

Instantly share code, notes, and snippets.

View aaronpanch's full-sized avatar

Aaron Panchal aaronpanch

  • Santa Barbara, CA
View GitHub Profile
@aaronpanch
aaronpanch / simple_form_bootstrap.rb
Last active March 29, 2017 17:15 — forked from codyeatworld/simple_form_bootstrap.rb
Changes to the simple form initializer for bootstrap 4 alpha
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
config.error_notification_class = 'alert alert-danger'
config.button_class = 'btn btn-primary'
config.boolean_label_class = nil
config.wrappers :vertical_input_group, tag: 'div', class: 'form-group', error_class: 'has-danger' do |b|
b.use :html5
b.use :placeholder
b.use :label, class: 'form-control-label'