fix archive url (modify incorrectly)

This commit is contained in:
Ruling-Mac 2015-08-18 18:00:52 +08:00
parent 9461aeb279
commit a595d1611b
1 changed files with 1 additions and 3 deletions

View File

@ -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