Update vehicles_controller.rb

Change ID to Name
This commit is contained in:
2016-04-22 09:34:32 -04:00
parent f936e61684
commit 559a846f1e

View File

@@ -36,7 +36,7 @@ class VehiclesController < ApplicationController
# display a specific vehicle
def show
@vehicle = Vehicle.find_by_id(params[:id])
@customer = @vehicle.qbo_customer.id if @vehicle.qbo_customer
@customer = @vehicle.qbo_customer.name if @vehicle.qbo_customer
end
# return an HTML form for editing a vehicle