Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Vote</h1>
- <%= form_tag(poll_vote_path(@poll_id), method: :put) do %>
- <%= render partial: "/candidates/candidate", locals: {candidate: @candidate} %>
- <%= submit_tag 'Mark as Complete' %>
- <% end %>
- <% @candidates.each do |candidate| %>
- <ul>
- <li>
- <%= check_box_tag 'candidate_id[]',candidate.id %>
- <%= candidate.name %>
- </li>
- </ul>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement