增加作品分类下拉框
This commit is contained in:
parent
64f025fe70
commit
93d8fd31a0
|
@ -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
|
Loading…
Reference in New Issue