标签: ruby ruby-on-rails-4
我正在为所有国家/地区提取所有货币。我怎么能按字母顺序订购呢
这是我的
= f.select :budget_currency, ['None'] + Country.pluck(:currency).compact.uniq.select {|x| x.present?}, {}, :class => "itineraryBudget"