Update vehicles_controller.rb

This commit is contained in:
2016-05-06 06:30:01 -04:00
parent 23d4debc3a
commit 70cd5a5cdd

View File

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