Skip to content

Instantly share code, notes, and snippets.

Created May 1, 2011
Embed
What would you like to do?
<% form_for(vote, :remote => true) do |f| %>
<%= check_box :selection, vote.id, {}, vote.id %>
<%= hidden_field_tag("approval_"+vote.id.to_s, "temp") %>
...
<%= link_to 'Vote Yes', ballots_path, :id => "vote_yes_top" %>
<%= link_to 'Vote No', ballots_path, :id => "vote_no_top" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment