X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/fc0a6a8d7ea15bcdb27ebdd58721401c7045c6e0..ed271a9bc9a0ec6928e7276d645541db6e5cb7c6:/app/views/quickvote/_result.rhtml diff --git a/app/views/quickvote/_result.rhtml b/app/views/quickvote/_result.rhtml old mode 100755 new mode 100644 index e10890a..e0ead6d --- a/app/views/quickvote/_result.rhtml +++ b/app/views/quickvote/_result.rhtml @@ -1,10 +1,10 @@ -<% %> +
The winner is: - <%= @candidates[result.winner].name.capitalize %>
+The winner is: + <%=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.
+There is no winner using this method.
<% end %> +