added content for index page.

parent 9eb07b37
<center> <h1>Vote-A-Sutra</h1>
Voting App
</center> <%@positions.each do |p|%>
<div style="display:inline-block; padding:20px">
<h4><%=p.name%></h4>
<table style="width:300px;">
<thead><td>Name</td><td>Slogan</td><td>Votes</td></thead>
<%p.candidates.each do |c|%>
<tr><td><%=c.full_name%></td><td ><%=c.slogan%></td><td><%=c.votes.count%></td></tr>
<%end%>
</table>
</div>
<%end%>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment