tag云显示搜索结果的TAG云

This commit is contained in:
sw 2015-04-15 17:31:15 +08:00
parent 2e3294a341
commit 0f6d2676e5
1 changed files with 3 additions and 2 deletions

View File

@ -60,8 +60,7 @@ class FilesController < ApplicationController
sort = "#{@sort} #{@order}" sort = "#{@sort} #{@order}"
end end
show_attachments [@course] # show_attachments [@course]
@tag_list = attachment_tag_list @all_attachments
begin begin
q = "%#{params[:name].strip}%" q = "%#{params[:name].strip}%"
@ -76,6 +75,8 @@ class FilesController < ApplicationController
@searched_attach = paginateHelper @result,10 @searched_attach = paginateHelper @result,10
end end
@tag_list = attachment_tag_list @searched_attach
#rescue Exception => e #rescue Exception => e
# #render 'stores' # #render 'stores'
# redirect_to search_course_files_url # redirect_to search_course_files_url