Skip to content

Commit

Permalink
Order by name on city drop down
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Resella committed Mar 6, 2012
1 parent b5a6e67 commit 9870714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/events/_form.html.haml
Expand Up @@ -10,7 +10,7 @@
.clearfix
= f.label :team_id
.input
= f.select(:team_id, Team.all.map { |x| [x.name,x.id]})
= f.select(:team_id, Team.all(:order => "name").map { |x| [x.name,x.id]})
.clearfix
= f.label :name
.input
Expand Down

0 comments on commit 9870714

Please sign in to comment.