diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 441471b..2712a23 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -38,6 +38,7 @@ class VehiclesController < ApplicationController def new @vehicle = Vehicle.new @customers = Customer.all.order(:name) + @customer = params[:customer_id]) if params[:customer_id] end # create a new vehicle