Create model for candidates with name and description

This commit is contained in:
ricola 2025-04-06 17:04:31 -06:00
parent f7f1807839
commit d6500e013d
6 changed files with 64 additions and 5 deletions

View file

@ -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>