From 3896560184b9f4b3949aeb842b9a4093500ed549 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 6 May 2016 12:17:33 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 7dab691..4487156 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -47,7 +47,8 @@ class VehiclesController < ApplicationController if @vehicle @customer = @vehicle.customer.name if @vehicle.customer else - flash[:error] = "Vehicle Not Found" + flash[:error] = "Vehicle Not Found" + @customers = Customer.all.order(:name) render :index end end