skill-assessment-app/app/helpers/application_helper.rb
2016-07-31 14:47:15 -05:00

13 lines
451 B
Ruby

module ApplicationHelper
def experience_options val
options_for_select([
["Please Select", ""],
["0-3 Years", "0-3"],
["4-6 Years", "4-6"],
["7-9 Years", "7-9"],
["10-14 Years", "10-14"],
["15+ Years", "15+"]
], disabled: "-", selected: (val.blank? ? '' : val))
end
end