From 8418dfc0b5fe6e64df75018bf269f3568c7fa610 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 5 Aug 2016 00:04:31 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 63bd057..441471b 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -38,9 +38,6 @@ 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