增加作品分类下拉框

This commit is contained in:
sw 2014-07-19 13:16:29 +08:00
parent 64f025fe70
commit 93d8fd31a0
1 changed files with 13 additions and 1 deletions

View File

@ -174,5 +174,17 @@ module ContestsHelper
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