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. |
||
|---|---|---|
| .. | ||
| controllers | ||
| helpers | ||
| mailers | ||
| models | ||
| uploaders | ||
| views | ||