From 88c81b44eae6d34753febe441810ddb20f6555fc Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 12 Oct 2023 14:20:00 +0000 Subject: Fix use of update_attributes --- app/controllers/admin/links_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/admin/links_controller.rb') diff --git a/app/controllers/admin/links_controller.rb b/app/controllers/admin/links_controller.rb index bda0d49..54f245a 100644 --- a/app/controllers/admin/links_controller.rb +++ b/app/controllers/admin/links_controller.rb @@ -30,7 +30,7 @@ class Admin::LinksController < Admin::AdminController def update @link = Link.find(params[:id]) - if @link.update_attributes(link_params) + if @link.update(link_params) flash.notice = "Link updated successfully!" else flash.alert = "Error updating link." -- cgit 1.4.1