You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/helpers/colleges_helper.rb

27 lines
474 B

6 years ago
# encoding: utf-8
module CollegesHelper
def parse_index_type index
type = ""
case index
when "day"
type = ""
when "week"
type = ""
when "mon"
type = ""
when "year"
type = ""
end
type
end
def course_managers teachers
str = ""
teachers.each_with_index do |teacher, index|
str += "" if index > 0
str += teacher.user.try(:show_real_name)
end
str
end
6 years ago
end