diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 284e034..09b975e 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -41,7 +41,7 @@ class VehiclesController < ApplicationController # return an HTML form for editing a vehicle def edit @vehicle = Vehicle.find_by_id(params[:id]) - @customer = @vehicle.qbo_customer.id + @customer = @vehicle.qbo_customer.id if @vehicle.qbo_customer end # update a specific vehicle