forked from jasder/forgeplus
FIX bug
This commit is contained in:
parent
47555b73ae
commit
c6132d9955
|
@ -10,11 +10,10 @@ class ChallengesController < ApplicationController
|
||||||
# 关卡访问的权限控制
|
# 关卡访问的权限控制
|
||||||
before_action :shixun_access_allowed, only: [:index]
|
before_action :shixun_access_allowed, only: [:index]
|
||||||
|
|
||||||
include ShixunsHelper
|
|
||||||
include ChallengesHelper
|
include ChallengesHelper
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 新建实践题
|
# 新建实践题
|
||||||
def new
|
def new
|
||||||
|
@ -163,7 +162,7 @@ class ChallengesController < ApplicationController
|
||||||
@shixun.increment!(:visits)
|
@shixun.increment!(:visits)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@tab = params[:tab].nil? ? 1 : params[:tab].to_i
|
@tab = params[:tab].nil? ? 1 : params[:tab].to_i
|
||||||
|
|
Loading…
Reference in New Issue