From 1fe889ce6eb44e384cbd979a0fbacdd9a6e4fbe5 Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 19 Sep 2019 21:54:41 +0800 Subject: [PATCH] Update archives_controller.rb try --- app/controllers/archives_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/archives_controller.rb b/app/controllers/archives_controller.rb index 79af1a1..af65cab 100644 --- a/app/controllers/archives_controller.rb +++ b/app/controllers/archives_controller.rb @@ -7,6 +7,7 @@ class ArchivesController < ApplicationController if !params['title'].nil? files_by_cateogry = ArchiveFile.where(is_hidden: false).group_by(&:category) categories = files_by_cateogry.keys + puts categories cats_last = [] categories.each do |category| url_to_edit = ""