Skip to content

Instantly share code, notes, and snippets.

@djcas9
Created March 11, 2009 11:11
Show Gist options
  • Save djcas9/77418 to your computer and use it in GitHub Desktop.
Save djcas9/77418 to your computer and use it in GitHub Desktop.
<% remote_form_for [@post, Comment.new] do |f| %>
<p>
<!-- <%= f.text_field :name, :value => current_user.login %>
<%= f.text_field :email, :value => current_user.email %> -->
<%= f.label :body, "New Comment" %><br />
<%= f.text_area :body, :cols => 60, :rows => 10 %>
</p>
<br />
<p><%= f.submit "Add Comment" %></p>
<br />
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment