aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
blob: 3cce8669f1a1e29ee43d5386fbcbff00763c26ee (plain) (blame)
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