Update archives_controller.rb

try
This commit is contained in:
chiu 2019-09-19 21:54:41 +08:00
parent a2cf89f090
commit 1fe889ce6e
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ class ArchivesController < ApplicationController
if !params['title'].nil? if !params['title'].nil?
files_by_cateogry = ArchiveFile.where(is_hidden: false).group_by(&:category) files_by_cateogry = ArchiveFile.where(is_hidden: false).group_by(&:category)
categories = files_by_cateogry.keys categories = files_by_cateogry.keys
puts categories
cats_last = [] cats_last = []
categories.each do |category| categories.each do |category|
url_to_edit = "" url_to_edit = ""