Update vehicles_controller.rb

This commit is contained in:
2016-08-03 21:02:45 -04:00
committed by GitHub
parent 7aba8cdce3
commit 18fc7a6c8c

View File

@@ -30,6 +30,9 @@ class VehiclesController < ApplicationController
def new
@vehicle = Vehicle.new
@customers = Customer.all.order(:name)
if params[:customer]
@customer = Customer.find_by_id(params[:customer])
end
end
# create a new vehicle