This commit is contained in:
BoHung Chiu 2021-05-17 21:24:02 +08:00
parent 4cad16bd13
commit 469e66952d
1 changed files with 1 additions and 1 deletions

View File

@ -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