From 93d8fd31a040c61f0089d57acd7e4167e13edecb Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Sat, 19 Jul 2014 13:16:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BD=9C=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/contests_helper.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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