Update archives_controller.rb
This commit is contained in:
parent
1fe889ce6e
commit
7c0fa37235
|
@ -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 = ""
|
||||||
|
|
Loading…
Reference in New Issue