# 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 end