From c7bebc6e0a96c6a3e403ae71682212a25d750ca0 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 20 Oct 2014 19:46:03 +0800 Subject: [PATCH] try to fix gallery /imgs --- app/controllers/admin/galleries_controller.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/controllers/admin/galleries_controller.rb b/app/controllers/admin/galleries_controller.rb index 9865101..57d7ba2 100644 --- a/app/controllers/admin/galleries_controller.rb +++ b/app/controllers/admin/galleries_controller.rb @@ -1,6 +1,7 @@ class Admin::GalleriesController < OrbitAdminController before_filter :setup_vars - before_action :authenticate_user, :log_user_action, :except => "imgs" + before_action :authenticate_user, :except => "imgs" + before_action :log_user_action layout "back_end" def index @albums = Album.all @@ -30,13 +31,10 @@ class Admin::GalleriesController < OrbitAdminController redirect_to admin_galleries_path end - - def destroy album = Album.find(params[:id]) album.destroy redirect_to admin_galleries_path - end def edit