From 469e66952de674fa4a24b263224e79cdedf3676f Mon Sep 17 00:00:00 2001 From: Bohung Date: Mon, 17 May 2021 21:24:02 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/galleries_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/galleries_controller.rb b/app/controllers/admin/galleries_controller.rb index 5aeab81..aaa7369 100644 --- a/app/controllers/admin/galleries_controller.rb +++ b/app/controllers/admin/galleries_controller.rb @@ -281,7 +281,7 @@ class Admin::GalleriesController < OrbitAdminController @fiter_albums = albums1.concat(albums2) end def update_album_setting - params_album_setting = params['album_setting'].permit! + params_album_setting = params.require(:album_setting).permit! AlbumSetting.first.update_attributes(params_album_setting) redirect_to '/admin/galleries' end