def bootstrap_form_with(**options, &block)
      bootstrap_options = options[:bootstrap] || {}

      css_classes = options.delete(:class)

      if bootstrap_options[:layout].to_s == "inline"
        css_classes = [css_classes, "form-inline"].compact.join(" ")
      end

      form_options = options.reverse_merge(builder: ComfyBootstrapForm::FormBuilder)
      form_options.merge!(class: css_classes) unless css_classes.blank?

      supress_form_field_errors do
        form_with(**form_options, &block)
      end
    end
def bootstrap_form_with(**options, &block)
      bootstrap_options = options[:bootstrap] || {}

      css_classes = options.delete(:class)

      if bootstrap_options[:layout].to_s == "inline"
        css_classes = [css_classes, "form-inline"].compact.join(" ")
      end

      form_options = options.reverse_merge(builder: ComfyBootstrapForm::FormBuilder)
      form_options.merge!(class: css_classes) unless css_classes.blank?

      supress_form_field_errors do
        form_with(**form_options, &block)
      end
    end
Wrapper for `form_with`. Passing in Bootstrap form builder.