phusion/juvia — pull request #16 by JangoSteve (2013-01-15 03:11:12+00:00)
Title: Fixed syntax error with postgress order statement.

On the site page (/admin/sites/1), I was getting an error from Postgress (the pg gem).

```
PG::Error: ERROR: non-integer constant in ORDER BY
LINE 1: ....* FROM "topics" WHERE "topics"."site_id" = 1 ORDER BY '---
^
: SELECT "topics".* FROM "topics" WHERE "topics"."site_id" = 1 ORDER BY '---
:last_posted_at: :desc
'
Extracted source (around line #91):

88: created whenever a user posts a comment with a certain topic ID.

89:
90:

91: <%= render :partial => 'admin/topics/topic', :collection => @site.last_updated_topics %>
92:

93: <% end %>
```

This fixes it.