course real server host.

This commit is contained in:
yanxd 2014-02-24 15:00:03 +08:00
parent 7deeab62bc
commit bc7471bcb7
3 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class WelcomeController < ApplicationController
caches_action :robots
def index
(course() and render :course and return 0) if request.headers['REQUEST_URI'].match(/course\.trustie\.net/)
(course() and render :course and return 0) if request.original_url.match(/course\.trustie\.net/)
# @news = News.latest User.current
# @projects = Project.latest User.current
#by young

View File

@ -1,3 +1,4 @@
<h3>test</h3>
<%= debug @params %>
<%= debug request %>
<hr/>

View File

@ -1570,6 +1570,8 @@ en:
label_contest_innovate: Competitions
label_software_user: Users
label_course_practice: Courses
label_course_all: Teacher
label_teacher_all: Student
label_user_home: User Space
field_hidden_repo: code protected