diff --git a/app/views/customers/index.html.erb b/app/views/customers/index.html.erb index 989dac3..0b13e4a 100644 --- a/app/views/customers/index.html.erb +++ b/app/views/customers/index.html.erb @@ -1,9 +1,10 @@

Customers


-<% @customers.each do |@customer| %> +<% @customers.each do |c| %>
+ <% @customer = c %> <%= render :partial => 'customers/details' %> <%= button_to "Show", customer_path(c.id), method: :get %>