mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
FIX bug
This commit is contained in:
@@ -10,11 +10,10 @@ class ChallengesController < ApplicationController
|
||||
# 关卡访问的权限控制
|
||||
before_action :shixun_access_allowed, only: [:index]
|
||||
|
||||
include ShixunsHelper
|
||||
include ChallengesHelper
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 新建实践题
|
||||
def new
|
||||
@@ -163,7 +162,7 @@ class ChallengesController < ApplicationController
|
||||
@shixun.increment!(:visits)
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
def show
|
||||
@tab = params[:tab].nil? ? 1 : params[:tab].to_i
|
||||
|
||||
Reference in New Issue
Block a user