From 9cd143c5efc010bf5797c72f7bab3ce4be2bfc60 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 1 Aug 2016 15:39:04 -0400 Subject: [PATCH] Update index.html.erb --- app/views/customers/index.html.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/customers/index.html.erb b/app/views/customers/index.html.erb index bbf866e..1b3a984 100644 --- a/app/views/customers/index.html.erb +++ b/app/views/customers/index.html.erb @@ -5,7 +5,7 @@ <%= submit_tag "Search" %> <% end %>
-<% if @customers.present? or !@customers.nil? %> +<% if @customers.present? %>
<% @customers.each do |c| %> @@ -19,6 +19,10 @@ <% end %> +
+ <%= will_paginate @customers %> +
+ <% else %>

There are no customers containing the term(s) <%= params[:search] %>.

<% end %> @@ -26,6 +30,5 @@
- <%= will_paginate @customers %> <%= button_to "New", new_customer_path, method: :get %>