search for: comment_form

Displaying 4 results from an estimated 4 matches for "comment_form".

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
2008 Sep 29
4
RJS is not loaded
...ml { redirect_to :controller => ''pattern'', :action => ''show'', :id => @comment.pattern_id } format.js but the RJS is not startet. The rjs contains: page.insert_html :bottom, :comment, :partial => ''list'', :object => @comment page[:comment_form].reset page.replace_html :notice, flash[:notice] flash.discard Non of the listed action is done :(. What could be the reason for this? I really apprechiate each kind of help, hints etc :) Thank you!!! Cheers, Knut -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~---...
2006 Jan 04
9
Resizeable
Has anyone done any work on a "Resizeable" class they''d be willing to share? I''m looking to do some stuff that''ll need resizable divs, but I didn''t want to re-invent the wheel if I can avoid it. -Jerod _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Sep 07
6
form_for - Child object - how to set parent id
...id:</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>Add your comment:</legend> <% form_for :comment, :url => { :action => :add_comment } do |form| %> <p>...