From 26d4f09f975f52a89fc849cf8335ead4197fd374 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 22 Apr 2016 12:07:55 -0400 Subject: [PATCH] Update index.html.erb --- app/views/vehicles/index.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/vehicles/index.html.erb b/app/views/vehicles/index.html.erb index 7beda81..0ad3757 100644 --- a/app/views/vehicles/index.html.erb +++ b/app/views/vehicles/index.html.erb @@ -1,10 +1,11 @@

Customer Vehicles


-<% Vehicle.all.each do |@vehicle| %> +<% Vehicle.all.each do |vehicle| %>
- <% @customer = @vehicle.qbo_customer.name if @vehicle.qbo_customer %> + <% @customer = vehicle.qbo_customer.name if @vehicle.qbo_customer %> + <% @vehicle = vehicle %> <%= render :partial => 'vehicles/details' %>