Skip to content

Instantly share code, notes, and snippets.

@benmanns
Forked from anonymous/gist:441141
Created June 16, 2010 19:29
Show Gist options
  • Save benmanns/441144 to your computer and use it in GitHub Desktop.
Save benmanns/441144 to your computer and use it in GitHub Desktop.
<!-- code to show my post -->
<% form_for [@post, Comment.new] do |f| %>
Body: <%= f.text_field :body %>
<p><%= f.submit "Add Comment" %></p>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment