From a595d1611bb9c12d56dfb65b9e483902e357ffa2 Mon Sep 17 00:00:00 2001 From: Ruling-Mac Date: Tue, 18 Aug 2015 18:00:52 +0800 Subject: [PATCH] fix archive url (modify incorrectly) --- app/controllers/archives_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/archives_controller.rb b/app/controllers/archives_controller.rb index 5b933a4..c340b41 100644 --- a/app/controllers/archives_controller.rb +++ b/app/controllers/archives_controller.rb @@ -94,8 +94,6 @@ class ArchivesController < ApplicationController else files_by_cateogry = ArchiveFile.where(:category_id.in => OrbitHelper.widget_categories).with_tags(OrbitHelper.widget_tags).group_by(&:category) end - - cats = files_by_cateogry.keys.collect do |cat| files_by_category_tag = files_by_cateogry[cat].group_by(&:tags) @@ -107,7 +105,7 @@ class ArchivesController < ApplicationController files_by_category_tag[t].each_with_index do |archive,index| a = { "archive-title" => archive.title, - "archive_url" => OrbitHelper.url_to_show(archive.to_param) + "archive_url" => OrbitHelper.widget_more_url } if t.count > 1