竞赛社区首页点击竞赛列表后,标签的名称变更了,应该始终显示“竞赛”

This commit is contained in:
cxt 2016-12-30 16:45:53 +08:00
parent 7f7edf53ac
commit 79ba4cd9b7
1 changed files with 1 additions and 0 deletions

View File

@ -4087,6 +4087,7 @@ class UsersController < ApplicationController
# 用户竞赛列表
def user_contestlist
# 我创建的竞赛
@contest_community = "竞赛"
@my_contests = @user.contests.where(:user_id => @user.id).order("created_at desc")
@my_contests_count = @my_contests.count
# 我参与的竞赛