实训人数统计

dev_cs_new
daiao 6 years ago
parent 33416930a7
commit b52b29b379

@ -155,6 +155,7 @@ class ChallengesController < ApplicationController
@editable = @shixun.status == 0 # before_action有判断权限如果没发布则肯定是管理人员 @editable = @shixun.status == 0 # before_action有判断权限如果没发布则肯定是管理人员
@user = current_user @user = current_user
@shixun.increment!(:visits)
end end
def show def show

Loading…
Cancel
Save