From fce3931858b6a2583f6547cda51a16f267ecd827 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 4 Apr 2017 22:22:29 -0400 Subject: [PATCH] Added new customer button --- app/views/customers/index.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/customers/index.html.erb b/app/views/customers/index.html.erb index d3b3d95..1e99912 100644 --- a/app/views/customers/index.html.erb +++ b/app/views/customers/index.html.erb @@ -3,6 +3,7 @@ <%= form_tag(customers_path, :method => "get", id: "search-form") do %> <%= text_field_tag :search, params[:search], placeholder: "Search Customers" %> <%= submit_tag "Search" %> +<%= button_to "New Customer", new_customer_path, method: :get%> <% end %>
<% if @customers.present? %>