X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/ac5e3489e8b886b7b8a7252ab56ddeb3d3bdadc7..a92ebf4fa0498e973d22fb12d63f4e2d5072c5e5:/app/views/quickvote/_result.rhtml?ds=sidebyside diff --git a/app/views/quickvote/_result.rhtml b/app/views/quickvote/_result.rhtml index e10890a..b643224 100644 --- a/app/views/quickvote/_result.rhtml +++ b/app/views/quickvote/_result.rhtml @@ -1,10 +1,9 @@ <% %> <% if result.winner? and result.winners.length == 1%>
The winner is: - <%= @candidates[result.winner].name.capitalize %>
+ <%=h @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].to_s.capitalize}.join(", ") %>
+There was a tie. The winners are: <%=h( result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") )%>
<% else %>There is no winner using this method.
<% end %>