Create model for candidates with name and description
This commit is contained in:
parent
f7f1807839
commit
d6500e013d
6 changed files with 64 additions and 5 deletions
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
<h2>Votes</h2>
|
||||
|
||||
<ul>
|
||||
<% @votes.each do |vote| %>
|
||||
<li>
|
||||
<a href="/votes/<%= vote.secure_id %>"><%= vote.title %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<form action="/votes/new" method="get">
|
||||
<button type="submit">Create new vote</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue