From 4904d807bc37a9cfd13a6caf30caad58d6b4ecec Mon Sep 17 00:00:00 2001 From: Louis Knapp Date: Sat, 5 Dec 2015 16:12:37 -0600 Subject: [PATCH] lk | alphabetizes agency dropdown on clients page --- app/views/clients/_fields.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/clients/_fields.html.haml b/app/views/clients/_fields.html.haml index 9f5941b..67d5ff9 100644 --- a/app/views/clients/_fields.html.haml +++ b/app/views/clients/_fields.html.haml @@ -38,7 +38,7 @@ .form-group = f.label "Agency:", class: "col-sm-2 control-label" .col-sm-10 - = f.select :agency_id, Agency.all.collect {|b| [ b.agency_name, b.id ] }, {include_blank: 'None'}, class: "selectpicker", disabled: disabled + = f.select :agency_id, Agency.order(:agency_name).collect {|b| [ b.agency_name, b.id ] }, {include_blank: 'None'}, class: "selectpicker", disabled: disabled .form-group = f.label "Type of Bike Requested:", class: "col-sm-2 control-label"