<div class="container">
  <h2>Taxon Info</h2>

  <ul class="nav nav-tabs">
    <li class="active">
      <a data-toggle="tab" href="#home">Home</a>
    </li>
    <% @iconic_taxon_names.each do |taxon| %>
      <% if !taxon.empty? %>
        <li>
          <a data-toggle="tab" href="#<%= taxon.first.iconic_taxon_name %>"><%= taxon.first.iconic_taxon_name %></a>
        </li>
      <% end %>
    <% end %>
  </ul>
   <!-- <div class="tab-content">
     <div id="home" class="tab-pane fade in active">
       <p>This is home.</p>
     </div> -->

     <%# if !taxon.empty? %>
       <!-- <div id="<%#= taxon.first.iconic_taxon_name %>" class="tab-pane fade">
         <%#= erb :"partials/_results", :layout => false, :locals => {:taxon => taxon}  %>
       </div>
       <%# end %>
       </div> -->
   <%# end %>


</div>

<div class="container">
  <h2>Taxon Info</h2>

  <ul class="nav nav-tabs">
    <li class="active">
      <a data-toggle="tab" href="#home">Home</a>
    </li>
    <% @iconic_taxon_names.each do |taxon| %>
      <% if !taxon.empty? %>
        <li>
          <a data-toggle="tab" href="#<%= taxon.first.iconic_taxon_name %>"><%= taxon.first.iconic_taxon_name %></a>
        </li>
      <% end %>
    <% end %>
  </ul>

   <div class="tab-content">
     <div id="home" class="tab-pane fade in active">
       <p>
          iNaturalist is a lot of different things, but at its core,
          iNaturalist is an online social network of people sharing biodiversity information to help each other learn about nature
          It's also a crowdsourced species identification system and an organism occurrence recording tool. You can use it to record your own observations, get help with identifications, collaborate with others to collect this kind of information for a common purpose, or access the observational data collected by iNaturalist users.
       </p>
     </div>

     <% @iconic_taxon_names.each do |taxon| %>
       <% if !taxon.empty? %>
         <div id="<%= taxon.first.iconic_taxon_name %>" class="tab-pane fade">
           <%= erb :"partials/_results", :layout => false, :locals => {:taxon => taxon}  %>
         </div>
       <% end %>
     <% end %>
   </div>


</div>

Adjust div and erb placement; tabs working nicely
Adjust div and erb placement; tabs working nicely
