Displaying 2 results from an estimated 2 matches for "comment_us".
Did you mean:
comment's
2009 Mar 11
12
Eager loading comments associated with user submissions.
Hey everyone,
I am working on an application that allows users to submit articles,
and also comment on those articles. Pretty much exactly like Digg.
Everything works fine except that when there are a lot of comments
there are a lot of database queries to both fetch the comments and the
users who posted those comments. I have used eager loading in other
parts of my application to reduce the
2006 Aug 14
4
Updating a table with Ajax
...comment_text'', nil, :size => ''50x8'') %>
<%= submit_tag ''Submit'' %>
</div>
Then my _comments_list.rhtml partial:
<tr>
<div id=''comment<%= @comment.id %>''>
<td><div class=''comment_user''>
<b><%= @comment.user.firstname %></b><br/>
<span style="font-size: smaller;"><%= @comment.created_at.strftime(''%d
%B'') %></span>
</div></td>
<td><div class=''c...