From cf30ff3fe17547449e24448756dfcad43eea7904 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 10 May 2016 05:07:19 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index ee60d58..2977f17 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -44,6 +44,7 @@ class VehiclesController < ApplicationController @vehicle = Vehicle.find_by_id(params[:id]) if @vehicle @customer = @vehicle.customer.name if @vehicle.customer + issues = @vehicle.issues else flash[:error] = "Vehicle Not Found" redirect_to :index