Q:

Trouble sorting my erb view into groups with in_groups_of

I am trying to use in_groups_of to sort my rails html output into two columns.  Right now it just displays as one column.  Here is the code: 
<% @providers.in_groups_of(2).each do |group| %>
<div class="row">

  <% group.each do |provider| %>
    <div class="col-xs-6">
      <h3><%= link_to provider.name, provider_path(provider) %></h3>

      <h4><%= provider.address %></h4>
    </div>
  <% end %>

A:

Your div.col-md-12s are each taking up the width of an entire row. Try changing them to col-xs-6. (I'm using xs so it will show up on any size of window; ignore this if not appropriate to your situation.)
<% @provider.in_groups_of(2).each do |group| %>
  <div class="row">
    <% group.each do |provider| %>
      <div class="col-xs-6">
        <h3><%= link_to provider.name, provider_path(provider) %></h3>
        <h4><%= provider.address %></h4>
      </div>
    <% end %>
  </div>
<% end %>

