radiant/radiant-clipped-extension — Issue #52: Uploading assets to a newly created page fails
Author: gerrit
Created: 2011-12-04 14:33:01+00:00
State: open

When on a new page form and trying to upload attachments it seems to work initially, but then the upload fails with status 500 and the following exception (using postgresql):

```
An exception occurred:

EXCEPTION:
ActiveRecord::StatementInvalid in assets#create

ERROR:
PGError: ERROR: invalid input syntax for integer: ""
LINE 1: SELECT * FROM "pages" WHERE ("pages"."id" = '') LIMIT 1
^
: SELECT * FROM "pages" WHERE ("pages"."id" = '') LIMIT 1
```