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