As a general rule, I would use an array to fill the options rather than
a hash. Hashes are not guaranteed to return their contents in any
particular order so you might end up with your options in a seemingly
random order. Arrays will not do that.
[[“desc 1”, “1”],[“desc 2”, “2”],[“desc 3”, “3”]]
_Kevin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.