X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/04f827dd4647f3a7d6e5bd8f5e9083c730a8dccc..c8499fcec8f54c148e3b387e6d774a80a20121e3:/app/views/quickvote/_result.rhtml?ds=sidebyside diff --git a/app/views/quickvote/_result.rhtml b/app/views/quickvote/_result.rhtml old mode 100644 new mode 100755 index a326459..e10890a --- a/app/views/quickvote/_result.rhtml +++ b/app/views/quickvote/_result.rhtml @@ -1,10 +1,10 @@ <% %> <% if result.winner? and result.winners.length == 1%>
The winner is: - <%= @candidates[result.winner].name %>
+ <%= @candidates[result.winner].name.capitalize %> <% elsif result.winner? and result.winners.length > 1 %>There was a tie. The winners are: <%= - result.winners.collect {|w| @candidates[w]}.join(", ") %>
+ result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") %> <% else %>There is no winner using this method.
<% end %>