Update vehicles_controller.rb

This commit is contained in:
2016-08-05 00:45:23 -04:00
committed by GitHub
parent d3463ce41b
commit a5f1d15156

View File

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