From 559a846f1e183fb2312cfb2ae84a7857efbe65d9 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 22 Apr 2016 09:34:32 -0400 Subject: [PATCH] Update vehicles_controller.rb Change ID to Name --- app/controllers/vehicles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index abf2aeb..71ee165 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -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