Update vehicles_controller.rb

This commit is contained in:
2016-05-06 12:17:33 -04:00
parent 3d9c7f8ad9
commit 3896560184

View File

@@ -48,6 +48,7 @@ class VehiclesController < ApplicationController
@customer = @vehicle.customer.name if @vehicle.customer
else
flash[:error] = "Vehicle Not Found"
@customers = Customer.all.order(:name)
render :index
end
end