From 822dc4b7054cfa58f5ffa878e3a5bf8d42652883 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 6 May 2016 06:59:21 -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 e7e471e..6b668bb 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -56,6 +56,7 @@ class VehiclesController < ApplicationController # update a specific vehicle def update + @customers = Customer.all.order(:name) @vehicle = Vehicle.find_by_id(params[:id]) if @vehicle.update_attributes(params[:vehicle]) flash[:success] = "Vehicle updated"