|
|
|
@ -81,6 +81,9 @@ class SubjectsController < ApplicationController
|
|
|
|
|
@tags = ChallengeTag.where(challenge_id: challenge_ids).pluck(:name).uniq
|
|
|
|
|
# 用户获取的实训标签
|
|
|
|
|
@user_tags = @subject.shixuns.map(&:user_tags_name).flatten.uniq
|
|
|
|
|
|
|
|
|
|
# 访问数变更
|
|
|
|
|
@subject.increment!(:visits)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
|