def submit(value = nil, options = {}, &block)
      if value.is_a?(Hash)
        options = value
        value   = nil
      end

      bootstrap = form_bootstrap.scoped(options.delete(:bootstrap))
      return super if bootstrap.disabled

      add_css_class!(options, "btn")

      form_group_class = "form-group"
      form_group_class += " row" if bootstrap.horizontal?

      content_tag(:div, class: form_group_class) do
        draw_control_column(bootstrap, offset: true) do
          out = super(value, options)
          out << capture(&block) if block_given?
          out
        end
      end
    end
def submit(value = nil, options = {}, &block)
      if value.is_a?(Hash)
        options = value
        value   = nil
      end

      bootstrap = form_bootstrap.scoped(options.delete(:bootstrap))
      return super if bootstrap.disabled

      add_css_class!(options, "btn")

      form_group_class = "form-group"
      form_group_class += " row" if bootstrap.horizontal?

      content_tag(:div, class: form_group_class) do
        draw_control_column(bootstrap, offset: true) do
          out = super(value, options)
          out << capture(&block) if block_given?
          out
        end
      end
    end
Add bootstrap formatted submit button. If you need to change its type or
 add another css class, you need to override all css classes like so:

   submit(class: "btn btn-info custom-class")

 You may add additional content that directly follows the button. Here's
 an example of a cancel link:

   submit do
     link_to("Cancel", "/", class: "btn btn-link")
   end