Skip to content

Instantly share code, notes, and snippets.

@josefrichter
Created June 19, 2010 18:15
Show Gist options
  • Save josefrichter/445115 to your computer and use it in GitHub Desktop.
Save josefrichter/445115 to your computer and use it in GitHub Desktop.
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @document.title %>
</p>
<p>
<b>Body:</b>
<%= @document.body %>
</p>
<%= form_for([@document, @document.votes.build]) do |f| %>
<%= f.error_messages %>
<%= f.hidden_field(:value,:value => true) %>
<%= f.submit "Cast a plus vote" %>
<% end %>
<%= link_to 'Edit', edit_document_path(@document) %> |
<%= link_to 'Back', documents_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment