Leaving the #order call in #last_three_comments caused the generated SQL to have two conflicting ORDER BY components, which caused the query to return invalid results. I removed the problem by removing #last_three_comments which I consider a premature optimization. |
||
|---|---|---|
| .. | ||
| _comment.html.haml | ||
| _comment.mobile.haml | ||
| _comments.html.haml | ||
| _new_comment.html.haml | ||
| _new_comment.mobile.haml | ||
| create.js.erb | ||
| index.html.haml | ||
| index.mobile.haml | ||
| new.mobile.haml | ||