Update archives_controller.rb

This commit is contained in:
chiu 2019-09-19 21:59:25 +08:00
parent 1fe889ce6e
commit 7c0fa37235
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +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 puts categories.inspect
cats_last = [] cats_last = []
categories.each do |category| categories.each do |category|
url_to_edit = "" url_to_edit = ""