<h1 class="text-center">Search results for "<%= params[:search] %>"</h1>

<% if @corrals.empty? %>
  Sorry, nothing matches your search...
<% else %>
  <% @corrals.each do |corral| %>
    <h3><%= corral.location %></h3>
    <p>(<%= pluralize(corral.racks, "rack") %>)</p>
  <% end %>
<% end %>
<h1 class="text-center">Search results for "<%= params[:search] %>"</h1>

<% if @corrals.empty? %>
  Sorry, nothing matches your search...
<% else %>
  <% @corrals.each do |corral| %>
    <h3><%= link_to corral.location, corral_path(corral) %></h3>
    <p>(<%= pluralize(corral.racks, "rack") %>)</p>
  <% end %>
<% end %>
Add link_to at search result show page
Add link_to at search result show page
