search for: divcomment

Displaying 2 results from an estimated 2 matches for "divcomment".

2006 Apr 07
3
Ajax render a template
...t. 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 id="divcomment"> <b>Leave a Reply</b> <%= form_remote_tag(:update => ''newcomments'', :url => {:action => :comment, :id => @post}, :position => "before") %> <%= render :partial => ''commentform'' %> <p><%= submit...
2006 Apr 11
5
RJS adds comment but doesn''t update form
...> @post %> <hr/> <div id="comments"> <%= render :partial => "comment", :collection => @post.comments %> <p<%= render :partial => ''newcomment'', :id => @post %></p> <div> _comment.rhtml <div id="divcomment"> <p><%= comment.name %> Says:</p> <p><%= comment.comment %></p> <p id="dateformat"><%= comment.created_at.to_s(:long) %></p> <hr/> </div> blog_controller def comment Post.find(...