From 89a131018c28f7a5c14985cae4fd6ad0390d81d8 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 5 Aug 2016 00:47:37 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 2712a23..72ba21c 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -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