diff --git a/app/views/customers/index.html.erb b/app/views/customers/index.html.erb index 0b13e4a..31f6b0e 100644 --- a/app/views/customers/index.html.erb +++ b/app/views/customers/index.html.erb @@ -4,8 +4,7 @@
- <% @customer = c %> - <%= render :partial => 'customers/details' %> + <%= render :partial => 'customers/details', locals: {customer: c} %> <%= button_to "Show", customer_path(c.id), method: :get %>