f087c23
595b16a
1
2 3 4 5 6 7 8 9 10 11
12
module ApplicationHelper def make_choice_from(array) value = 0 choices = [] array.each do |item| choices << [item, value] value += 1 end choices end end