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