Skip to content

Instantly share code, notes, and snippets.

@samuelkobe
Created September 17, 2012 22:46
Show Gist options
  • Save samuelkobe/3740249 to your computer and use it in GitHub Desktop.
Save samuelkobe/3740249 to your computer and use it in GitHub Desktop.
<%= form_tag(:controller => 'hairstyles', :action => 'vote') do %>
<% Hairstyle.all.each do |hairstyle| %>
<ul style="float:left;">
<li><%= radio_button_tag 'id', hairstyle.id %></li>
<li class="name"><%= hairstyle.name %></li>
<li class="count"><%= hairstyle.count %></li>
</ul>
<% end %>
<%= submit_tag 'Vote' %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment