Update vehicles_controller.rb

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

View File

@@ -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