-
Notifications
You must be signed in to change notification settings - Fork 278
Description
We have a mature app using simple_form with Bootstrap 3. We are developing a new set of features where we would like to use Bootstrap 4 or maybe even 5 depending on when we launch the features, with the goal of eventually transitioning the old v3 views to use whatever new version we settle on.
Is there any suggested way of doing this? One option I guess would be to customize all of the wrappers in the generated simple_form bootstrap initializer (e.g. add a bs4_
prefix or something like that and then explicity add wrapper: :bs4_vertical_form
or whatever in each call to simple form. I would like to avoid this if possible, but not if it's the only sane way.
I guess another option would be to remove the initializers and create two separate form builders and move all the initialization configuration code into the initialize
method of each form builder. That's probably not great for performance but it may not be enough of an issue to matter.
Does anyone have any other ideas or suggestions? Thanks in advance.