skill-assessment-app/app/helpers/application_helper.rb

13 lines
451 B
Ruby
Raw Normal View History

2016-07-26 11:59:23 -05:00
module ApplicationHelper
2016-07-31 14:47:15 -05:00
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
2016-07-26 11:59:23 -05:00
end