Update index.html.erb

This commit is contained in:
2016-08-01 15:39:04 -04:00
committed by GitHub
parent ba18275ef8
commit 9cd143c5ef

View File

@@ -5,7 +5,7 @@
<%= submit_tag "Search" %> <%= submit_tag "Search" %>
<% end %> <% end %>
<br/> <br/>
<% if @customers.present? or !@customers.nil? %> <% if @customers.present? %>
<br/> <br/>
<% @customers.each do |c| %> <% @customers.each do |c| %>
@@ -19,6 +19,10 @@
</div> </div>
<% end %> <% end %>
<div class="actions">
<%= will_paginate @customers %>
</div>
<% else %> <% else %>
<p>There are no customers containing the term(s) <%= params[:search] %>.</p> <p>There are no customers containing the term(s) <%= params[:search] %>.</p>
<% end %> <% end %>
@@ -26,6 +30,5 @@
<br/> <br/>
<div class="actions"> <div class="actions">
<%= will_paginate @customers %>
<%= button_to "New", new_customer_path, method: :get %> <%= button_to "New", new_customer_path, method: :get %>
</div> </div>