Created
May 13, 2011 21:42
-
-
Save MikeAbner/971365 to your computer and use it in GitHub Desktop.
ActiveAdmin string primary key error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQL (0.6ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."namespace" = 'admin' AND ("active_admin_comments".resource_id = 'xksS5NjE' AND "active_admin_comments".resource_type = 'Gift') | |
PGError: ERROR: invalid input syntax for integer: "xksS5NjE" | |
LINE 1: ...admin' AND ("active_admin_comments".resource_id = 'xksS5NjE'... | |
^ | |
: SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."namespace" = 'admin' AND ("active_admin_comments".resource_id = 'xksS5NjE' AND "active_admin_comments".resource_type = 'Gift') | |
Rendered /Users/mabner/.rvm/gems/ruby-1.9.2-p180@china/gems/activeadmin-0.2.1/lib/active_admin/views/templates/active_admin_default/show.html.arb (1411.4ms) | |
Completed in 2329ms | |
ActionView::Template::Error (PGError: ERROR: invalid input syntax for integer: "xksS5NjE" | |
LINE 1: ...admin' AND ("active_admin_comments".resource_id = 'xksS5NjE'... | |
^ | |
: SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."namespace" = 'admin' AND ("active_admin_comments".resource_id = 'xksS5NjE' AND "active_admin_comments".resource_type = 'Gift')): | |
1: render renderer_for(:show) | |
Rendered /Users/mabner/.rvm/gems/ruby-1.9.2-p180@china/gems/actionpack-3.0.6/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms) | |
Rendered /Users/mabner/.rvm/gems/ruby-1.9.2-p180@china/gems/actionpack-3.0.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (10.2ms) | |
Rendered /Users/mabner/.rvm/gems/ruby-1.9.2-p180@china/gems/actionpack-3.0.6/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (14.5ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment