= search_form_for @ransack_search, :url => url_for(:action => :index), :html => {:method => :get, :class => "ransack_search"}, :remote => !!options[:remote] do |f|

  :javascript
    if (window.Ransack == null) { window.Ransack = {}; }
    Ransack.alt_predicates_i18n = #{I18n.translate(:"ransack.predicates.alt", :default => {}).to_json}

  .row
    .span12.well
      = f.grouping_fields do |g|
        = render 'ransack_ui/grouping_fields', :f => g

      %p
        = link_to_add_fields t(:add_group), f, :grouping

  .row
    .span12.well
      .pull-left
        = f.sort_fields do |s|
          = render 'ransack_ui/sort_fields', :f => s
      .pull-right
        = hidden_field_tag :distinct, '1'
        = hidden_field_tag :page, '1'
        = f.submit t(:submit), :class => 'btn btn-primary btn-large'

= search_form_for @ransack_search, :url => url_for(:action => :index), :html => {:method => :get, :class => "ransack_search"}, :remote => !!options[:remote] do |f|

  :javascript
    if (window.Ransack == null) { window.Ransack = {}; }
    Ransack.alt_predicates_i18n = #{I18n.translate(:"ransack.predicates.alt", :default => {}).to_json}

  .row
    .span12.well
      = f.grouping_fields do |g|
        = render 'ransack_ui/grouping_fields', :f => g

      %p
        = link_to_add_fields t(:add_group), f, :grouping

      %hr

      .pull-left
        = f.sort_fields do |s|
          = render 'ransack_ui/sort_fields', :f => s

      .pull-right
        = hidden_field_tag :distinct, '1'
        = hidden_field_tag :page, '1'
        = f.submit t(:submit), :class => 'btn btn-primary btn-large'

Use a single container for search form, split with hr
Use a single container for search form, split with hr
