From 74301f69a699a8553c9f0a047131b85b424961b9 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 16 Sep 2019 20:24:31 +0800 Subject: [PATCH] Update archive_files_controller.rb --- app/controllers/admin/archive_files_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/archive_files_controller.rb b/app/controllers/admin/archive_files_controller.rb index 4e5fdcb..5993cf7 100644 --- a/app/controllers/admin/archive_files_controller.rb +++ b/app/controllers/admin/archive_files_controller.rb @@ -1,7 +1,7 @@ class Admin::ArchiveFilesController < OrbitAdminController def show module_pages = Page.where(:module => 'archive').collect{|p| [p.name,p.url] } - puts module_pages + redirect_to '/' + I18n.locale.to_s + module_pages end def index if ArchiveSortOrder.count == 0