=> #<User id: 3, name: "icke", email: "[email protected]", bio: nil, website_url: nil, twitter_handle: nil, github_handle: nil, created_at: "2015-03-27 18:44:25", updated_at: "2015-03-27 18:57:39", encrypted_password: "$2a$10$TxUo5pAmymFmp6mQaQWDXuLGPYkgnwYYOMkxcAFoAdz...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 3, current_sign_in_at: "2015-03-27 18:57:39", last_sign_in_at: "2015-03-27 18:56:37", current_sign_in_ip: "172.17.42.1", last_sign_in_ip: "172.17.42.1", staff: nil, mentor: false, gender: nil>
Content of the fields doesn't matter. Select a Call.
web_1 | Started POST "/talks" for 172.17.42.1 at 2015-03-27 19:00:59 +0000
web_1 | Processing by TalksController#create as HTML
web_1 | Parameters: {"utf8"=>"✓", "authenticity_token"=>"iQQMd/1ly7CrF1RHnzfKz7DgcDZf9gDLGRjowgTLZFWRikuSV7rdXbqx+UANuxEtJGWYTYSyFgKQkPk9PIkmDA==", "talk"=>{"title"=>"fasdf", "public_description"=>"adsf", "private_description"=>"asdfasd", "time_slot"=>"15 minutes", "mentor_name"=>"fasdfas", "mentors_can_read"=>"1", "user_attributes"=>{"gender"=>"", "bio"=>"", "mentor"=>"0", "id"=>"3"}, "call_ids"=>["3", ""], "terms_and_conditions"=>"1"}, "commit"=>"Create Talk"}
web_1 | User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]]
web_1 | (0.5ms) SELECT COUNT(*) AS count_all, call_id AS call_id FROM "proposals" INNER JOIN "calls" ON "calls"."id" = "proposals"."call_id" WHERE (closes_at >= '2015-03-27 19:00:59.959409' AND (opens_at IS NULL OR opens_at <= '2015-03-27 19:00:59.959409')) GROUP BY call_id
web_1 | (0.3ms) SELECT COUNT(*) FROM "users" WHERE "users"."staff" IS NULL
web_1 | Unpermitted parameter: id
web_1 | Call Load (0.2ms) SELECT "calls".* FROM "calls" WHERE "calls"."id" = $1 LIMIT 1 [["id", 3]]
web_1 | Unpermitted parameter: id
web_1 | Unpermitted parameter: id
web_1 | (0.2ms) BEGIN
web_1 | Call Exists (0.5ms) SELECT 1 AS one FROM "calls" WHERE ("calls"."title" = 'Neu' AND "calls"."id" != 3) LIMIT 1
web_1 | Call Exists (0.5ms) SELECT 1 AS one FROM "calls" WHERE ("calls"."title" = 'Neu' AND "calls"."id" != 3) LIMIT 1
web_1 | Authentication Exists (0.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = $1 LIMIT 1 [["user_id", 3]]
web_1 | Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = $1 LIMIT 1 [["user_id", 3]]
web_1 | SQL (0.4ms) UPDATE "users" SET "bio" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["bio", ""], ["updated_at", "2015-03-27 19:00:59.979392"], ["id", 3]]
web_1 | Call Exists (0.4ms) SELECT 1 AS one FROM "calls" WHERE ("calls"."title" = 'Neu' AND "calls"."id" != 3) LIMIT 1
web_1 | Call Exists (0.3ms) SELECT 1 AS one FROM "calls" WHERE ("calls"."title" = 'Neu' AND "calls"."id" != 3) LIMIT 1
web_1 | Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = $1 LIMIT 1 [["user_id", 3]]
web_1 | Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = $1 LIMIT 1 [["user_id", 3]]
web_1 | SQL (0.4ms) INSERT INTO "talks" ("title", "public_description", "private_description", "time_slot", "mentor_name", "user_id", "track", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "fasdf"], ["public_description", "adsf"], ["private_description", "asdfasd"], ["time_slot", "15 minutes"], ["mentor_name", "fasdfas"], ["user_id", 3], ["track", "Test"], ["id", "430c81acd49a26dc017e85e7b47ac4cd"], ["created_at", "2015-03-27 19:00:59.987639"], ["updated_at", "2015-03-27 19:00:59.987639"]]
web_1 | SQL (0.4ms) INSERT INTO "proposals" ("call_id", "id", "talk_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["call_id", 3], ["id", "d23183e7435a1a990d4529126c28feab"], ["talk_id", "430c81acd49a26dc017e85e7b47ac4cd"], ["created_at", "2015-03-27 19:00:59.989938"], ["updated_at", "2015-03-27 19:00:59.989938"]]
web_1 | SQL (1.6ms) INSERT INTO "proposals" ("talk_id", "call_id", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["talk_id", "430c81acd49a26dc017e85e7b47ac4cd"], ["call_id", 3], ["id", "712ebfbde11b0dd70c3db0c88e230944"], ["created_at", "2015-03-27 19:00:59.995127"], ["updated_at", "2015-03-27 19:00:59.995127"]]
web_1 | PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_proposals_on_talk_id_and_call_id"
web_1 | DETAIL: Key (talk_id, call_id)=(430c81acd49a26dc017e85e7b47ac4cd, 3) already exists.
web_1 | : INSERT INTO "proposals" ("talk_id", "call_id", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"
web_1 | (0.1ms) ROLLBACK
web_1 | Completed 500 Internal Server Error in 45ms
web_1 |
web_1 | ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_proposals_on_talk_id_and_call_id"
web_1 | DETAIL: Key (talk_id, call_id)=(430c81acd49a26dc017e85e7b47ac4cd, 3) already exists.
web_1 | : INSERT INTO "proposals" ("talk_id", "call_id", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"):
web_1 | app/controllers/talks_controller.rb:30:in `create'
web_1 |
web_1 |
web_1 | Rendered /usr/local/bundle/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_source.erb (7.4ms)
web_1 | Rendered /usr/local/bundle/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_trace.html.erb (4.1ms)
web_1 | Rendered /usr/local/bundle/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_request_and_response.html.erb (0.8ms)
web_1 | Rendered /usr/local/bundle/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/_web_console.html.erb (0.6ms)
web_1 | Rendered /usr/local/bundle/gems/web-console-2.0.0/lib/action_dispatch/templates/rescues/diagnostics.html.erb within rescues/layout (21.3ms)