From 039e9f97c6aef4327f8dcb3876d2bcc4562b305e Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 6 May 2016 12:18:48 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 4487156..45f5c5a 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -35,6 +35,7 @@ class VehiclesController < ApplicationController if @vehicle.save flash[:notice] = "New Vehicle Created" else + @customers = Customer.all.order(:name) render :edit end flash[:error] = @vehicle.errors.full_messages.to_sentence if @vehicle.errors