I have a selected list in my model that lists the names of people with their employers:
<li>Case Handler Name<span><%= f.select :person_id, Person.all.collect { |x| [x.name_and_company, x.id] } %></span></li> def name_and_company return "
Can I force the selection list in alphabetical order?
I guess I would put an order tag there ... somewhere?
(:order => 'personname DESC')
Thanks,
Danny
list select ruby-on-rails order
dannymcc
source share