去除中文在controller里

This commit is contained in:
yanxd 2014-04-03 08:50:24 +08:00
parent a1a58ee26c
commit 075b1d2143
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# encoding: utf-8
# This controller was added by william # This controller was added by william
class TagsController < ApplicationController class TagsController < ApplicationController
layout "base_tags" layout "base_tags"
@ -22,7 +23,7 @@ class TagsController < ApplicationController
NUMBERS = Setting.tags_show_search_results NUMBERS = Setting.tags_show_search_results
# 预设几个可以添加的tag # 预设几个可以添加的tag
@preTags = %w|预设A 预设B 预设C 预设D 预设E 预设F | #@preTags = %w|预设A 预设B 预设C 预设D 预设E 预设F |
# 接收参数解释: # 接收参数解释:
# params[:q]这是在其他页面点击tag跳转到该页面后的结果显示 ;params[:selected_tags]这是在过滤页面增删tag进行过滤传过来的参数 # params[:q]这是在其他页面点击tag跳转到该页面后的结果显示 ;params[:selected_tags]这是在过滤页面增删tag进行过滤传过来的参数