From 817a43e8498d1393e8a4393d74d9110b48ea5243 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 7 Jan 2024 20:47:26 -0500 Subject: [PATCH] Fixed update --- 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 e353c8e..f2bb620 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -84,7 +84,7 @@ class VehiclesController < ApplicationController @customer = params[:customer] begin @vehicle = Vehicle.find_by_id(params[:id]) - if @vehicle.update_attributes(allowed_params) + if @vehicle.update(allowed_params) flash[:notice] = "Vehicle updated" redirect_to @vehicle else