Disconnecting Simple Form Classes from Initializer

Extending at https://groups.google.com/forum/#!topic/plataformatec-simpleform/2eXfxboOQDg and Rails: Using simple_form and Twitter Bootstrap Integration - By default, Simple Form will add class names <action>_<model>

to all its forms.

I can disable it with the help simple_form_for @thing, html: { class: nil }

, but I can move it config/initializers/simple_form.rb

to DRY?
I tried setting it up config.default_form_class = nil

but to no avail.

+3


source to share





All Articles