Displaying 2 results from an estimated 2 matches for "comment_d".
Did you mean:
commented
2006 Apr 07
3
Ajax render a template
In my blog a user can add comments. I want an Ajax call to add the
comment to the bottom of the comments list.
How to i return a comment thats is in the comment template and add it to
the bottom of the page. I have gotten as far as rendering some text
back to the form and the comment doesn''t display until i refresh.
This is my _newcomment.rhtml form to create a new comment
<div
2006 Sep 07
6
form_for - Child object - how to set parent id
...nt in blog.comments %>
<div class="comment">
<div class="comment_name"><%=h comment.name %> said:</div>
<div class="comment_body"><%=h comment.body %></div>
<div class="comment_date"><%=h
comment.date_entered.to_s(:long) %></div>
</div>
<% end %>
<div class="comment_form" >
<%= error_messages_for ''comment'' %>
<fieldset>
<legend>...