This commit is contained in:
2016-07-28 20:48:34 -04:00
committed by GitHub
parent 297dd8ec4e
commit f33203b0e3

View File

@@ -4,6 +4,9 @@
<%= text_field_tag :search, params[:search], placeholder: "Search Customers" %>
<%= submit_tag "Search" %>
<% end %>
<br/>
<% if @customers.present? %>
<br/>
<% @customers.each do |c| %>
<div class="row">
@@ -16,6 +19,10 @@
</div>
<% end %>
<% else %>
<p>There are no posts containing the term(s) <%= params[:search] %>.</p>
<% end %>
<br/>
<div class="actions">