Started POST "/oauth2/authorizations" for 127.0.0.1 at 2013-06-23 08:48:00 +0200
Processing by Devise::Oauth2Providable::AuthorizationsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"BJD0TTWQiZTbijI/4FkjrZ4lKVSswMar0ePWSO++V/A=", "client_id"=>"6bdd98b192c59ee3cfea7852f3cc459c", "response_type"=>"code", "redirect_uri"=>"urn:ietf:wg:oauth:2.0:oob", "approve"=>"true", "commit"=>"Allow access"}
User Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."deleted_at" IS NULL AND "accounts"."type" IN ('User') AND "accounts"."id" = 1 LIMIT 1
Devise::Oauth2Providable::Client Load (0.4ms) SELECT "oauth2_clients".* FROM "oauth2_clients" WHERE "oauth2_clients"."identifier" = '6bdd98b192c59ee3cfea7852f3cc459c' LIMIT 1
(0.1ms) BEGIN
Devise::Oauth2Providable::AuthorizationCode Exists (0.2ms) SELECT 1 AS one FROM "oauth2_authorization_codes" WHERE "oauth2_authorization_codes"."token" = '908d3e4cd4cbacbd370d7997ef560bbd' LIMIT 1
SQL (0.4ms) INSERT INTO "oauth2_authorization_codes" ("client_id", "created_at", "expires_at", "token", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["client_id", 13], ["created_at", Sun, 23 Jun 2013 06:48:00 UTC +00:00], ["expires_at", Sun, 23 Jun 2013 06:49:00 UTC +00:00], ["token", "908d3e4cd4cbacbd370d7997ef560bbd"], ["updated_at", Sun, 23 Jun 2013 06:48:00 UTC +00:00], ["user_id", 1]]
(0.1ms) COMMIT
Completed 500 Internal Server Error in 17ms