Update vehicles_controller.rb

This commit is contained in:
2016-05-10 05:07:19 -04:00
parent 767f42c326
commit cf30ff3fe1

View File

@@ -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