diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 3694d0b..e7e471e 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -51,6 +51,7 @@ class VehiclesController < ApplicationController def edit @vehicle = Vehicle.find_by_id(params[:id]) @customer = @vehicle.customer.id if @vehicle.customer + @customers = Customer.all.order(:name) end # update a specific vehicle