From d13609ff4aee1fd9f4223a13163061bfcffb7e78 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 11 May 2016 07:31:52 -0400 Subject: [PATCH] Update index.html.erb --- app/views/customers/index.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 %>