search for: comment_list

Displaying 3 results from an estimated 3 matches for "comment_list".

2006 Aug 14
4
Updating a table with Ajax
...to work using DIVs instead of a table, but doing the layout with DIVs is much more cumbersome and I know it works for others with a table (though I haven''t been able to find an exact example code anywhere). Here''s my code (simplified for this example:) View: <div id=''comment_list''> <table> <% for @comment in @comments %> <%= render :partial => ''comment_list'' %> <% end %> </table> </div> <p>You can <a href="#" onclick="Element.toggle(''add_c...
2006 Mar 20
0
Is this a Bug?
rails version 1.0 the same code render :file=>?/spec/comment_list? work will in a .rhtml file while i put it in controller ,it will produce nothing to client browser. it must use options[:use_full_path] to work fine in controller code. after read some rails source code ,i think the reason is below: file action_controller/base.rb line 602 if file = options[:f...
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