app/controllers/courses_controller.rb
# Confirms a student logged-in user.
Confirms a student logged-in user.
Confirms a student logged - in user .
def student_logged_in
    unless student_logged_in?
      return false
    end
  end
def student_logged_in unless student_logged_in? return false end end
Confirms a student logged-in user.
Confirms a student logged - in user .
#redirect_to root_url, flash: {danger: '学生请登陆'}