删掉welcome没用的方法
This commit is contained in:
parent
67dfd72845
commit
edee2b2327
|
@ -148,7 +148,7 @@ class WelcomeController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
# 判断网站的入口,是课程 course 则跳过index去渲染 course 方法
|
||||||
def entry_select
|
def entry_select
|
||||||
url = request.original_url
|
url = request.original_url
|
||||||
if url.include?("course.trustie.net")
|
if url.include?("course.trustie.net")
|
||||||
|
@ -166,28 +166,6 @@ class WelcomeController < ApplicationController
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# 判断网站的入口,是课程 course 则跳过index去渲染 course 方法
|
|
||||||
def entry_select_course
|
|
||||||
if request.original_url.match(/.*course\.trustie\.net/)
|
|
||||||
(course() and render :course and return 0)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def entry_select_contest
|
|
||||||
if request.original_url.match(/.*contest\.trustie\.net/)
|
|
||||||
contest
|
|
||||||
render :contest
|
|
||||||
return 0
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def entry_select_user
|
|
||||||
if request.original_url.match(/.*user\.trustie\.net$/)
|
|
||||||
redirect_to(:controller => "users", :action => "index")
|
|
||||||
return 0
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# def render(*args)
|
# def render(*args)
|
||||||
# _fake if @fake_filter
|
# _fake if @fake_filter
|
||||||
# super
|
# super
|
||||||
|
|
Loading…
Reference in New Issue