Update vehicles_controller.rb

This commit is contained in:
2016-08-05 00:47:37 -04:00
committed by GitHub
parent de17fb80d1
commit 89a131018c

View File

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