Commit 2977b663 authored by Pedro Henrique's avatar Pedro Henrique

Order occupation when searching for professional

Signed-off-by: Pedro Henrique's avatarPedro Henrique! <pha14@inf.ufpr.br>
parent dd32fc54
......@@ -32,7 +32,7 @@
{:include_blank => "Todos"}, {:class => "search-field"} %>
<% else %>
<%= f.select :occupation_id_eq,
options_from_collection_for_select(Occupation.where(city_hall_id: @currentCityHall.id),"id","name"),
options_from_collection_for_select(Occupation.order(:name).where(city_hall_id: @currentCityHall.id),"id","name"),
{:include_blank => "Todos"}, {:class => "search-field"} %>
<% end %>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment