Update index.html.erb

This commit is contained in:
2017-04-04 22:28:20 -04:00
committed by GitHub
parent 1a043bea76
commit 77c7f0b6fe

View File

@@ -4,7 +4,7 @@
<%= text_field_tag :search, params[:search], placeholder: "Search Customers" %>
<%= submit_tag "Search" %>
<% end %>
<%= button_to("New Customer", new_customer_path, method: :get) if allowed_to?(:add_customers)%>
<%= button_to("New Customer", new_customer_path, method: :get) if User.current.allowed_to?(:add_customers)%>
<br/>
<% if @customers.present? %>
<br/>