From 0948362b0947b39adefbf373ab2085b6009fc31c Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 16 Sep 2019 20:16:53 +0800 Subject: [PATCH] Update archive_files_controller.rb --- app/controllers/admin/archive_files_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/admin/archive_files_controller.rb b/app/controllers/admin/archive_files_controller.rb index 4a39d62..daa532f 100644 --- a/app/controllers/admin/archive_files_controller.rb +++ b/app/controllers/admin/archive_files_controller.rb @@ -1,4 +1,8 @@ class Admin::ArchiveFilesController < OrbitAdminController + def show + module_pages = Page.where(:module => archive).collect{|p| [p.name,p.url] } + puts module_pages + end def index if ArchiveSortOrder.count == 0 ArchiveSortOrder.new('sort_order' => false).save