diff --git a/app/helpers/contests_helper.rb b/app/helpers/contests_helper.rb index 184fc7c40..01c7d544f 100644 --- a/app/helpers/contests_helper.rb +++ b/app/helpers/contests_helper.rb @@ -173,6 +173,18 @@ module ContestsHelper end tmp end - + + #作品分类下拉框 + def work_type_opttion + type = [] + #work_types = WorksCategory.all + WorksCategory.all.each do |work_type| + option = [] + option << work_type.category + option << work_type.category + type << option + end + type + end end \ No newline at end of file