Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading assets to a newly created page fails #52

Open
gerrit opened this issue Dec 4, 2011 · 0 comments
Open

Uploading assets to a newly created page fails #52

gerrit opened this issue Dec 4, 2011 · 0 comments

Comments

@gerrit
Copy link
Member

gerrit commented Dec 4, 2011

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant