diff --git a/app/views/customers/index.html.erb b/app/views/customers/index.html.erb index 8f8135a..423d515 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? %> @@ -11,9 +12,7 @@ <% @customers.each do |c| %>
-
- <%= link_to c %> -
+ <%= link_to c, c_path %>
<% end %> @@ -25,9 +24,3 @@ <% else %>

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

<% end %> - -
- -
- <%= button_to "New", new_customer_path, method: :get %> -