Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <h1>Vote</h1>
  2.  
  3. <%= form_tag(poll_vote_path(@poll_id), method: :put) do %>
  4. <%= render partial: "/candidates/candidate", locals: {candidate: @candidate} %>
  5. <%= submit_tag 'Mark as Complete' %>
  6. <% end %>
  7.  
  8.  
  9.  
  10.  
  11. <% @candidates.each do |candidate| %>
  12. <ul>
  13. <li>
  14. <%= check_box_tag 'candidate_id[]',candidate.id %>
  15. <%= candidate.name %>
  16. </li>
  17. </ul>
  18. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement