Skip to content

Instantly share code, notes, and snippets.

@marklocklear
Created June 26, 2012 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marklocklear/2995637 to your computer and use it in GitHub Desktop.
Save marklocklear/2995637 to your computer and use it in GitHub Desktop.
Started POST "/products" for 127.0.0.1 at 2012-06-26 08:56:23 -0400
Processing by ProductsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"bheB/PpRy3HIjAaye8vR/VlpxgIrGG22P5TQjMdnf8k=", "product"=>{"name"=>"A Few Good Men", "price"=>"13.95", "author"=>"Aarron Sorrkin", "rating"=>"PG", "runtime"=>"3"}, "commit"=>"Create Product"}
(0.2ms) BEGIN
SQL (119.1ms) INSERT INTO "products" ("created_at", "name", "price", "properties", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Jun 2012 12:56:23 UTC +00:00], ["name", "A Few Good Men"], ["price", 13], ["properties", {"author"=>"Aarron Sorrkin", "rating"=>"PG", "runtime"=>"3"}], ["updated_at", Tue, 26 Jun 2012 12:56:23 UTC +00:00]]
PG::Error: ERROR: Syntax error near 'a' at position 4
: INSERT INTO "products" ("created_at", "name", "price", "properties", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"
(0.2ms) ROLLBACK
Completed 500 Internal Server Error in 125ms
ActiveRecord::StatementInvalid (PG::Error: ERROR: Syntax error near 'a' at position 4
: INSERT INTO "products" ("created_at", "name", "price", "properties", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"):
app/controllers/products_controller.rb:46:in `block in create'
app/controllers/products_controller.rb:45:in `create'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment