Skip to content

Instantly share code, notes, and snippets.

@Evanto
Created October 31, 2017 14:32
Show Gist options
  • Save Evanto/a1e28859447a43483447cd1f349d186a to your computer and use it in GitHub Desktop.
Save Evanto/a1e28859447a43483447cd1f349d186a to your computer and use it in GitHub Desktop.
Started POST "/questions/188/answers" for 10.0.2.2 at 2017-10-31 14:31:18 +0000
Cannot render console from 10.0.2.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by AnswersController#create as JS
Parameters: {"utf8"=>"✓", "answer"=>{"body"=>"23gq3ga", "attachments_attributes"=>{"0"=>{"_destroy"=>"false"}}}, "commit"=>"Post your answer", "question_id"=>"188"}
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 40], ["LIMIT", 1]]
Question Load (0.5ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = $1 LIMIT $2 [["id", 188], ["LIMIT", 1]]
Unpermitted parameter: :_destroy
(0.3ms) BEGIN
SQL (0.9ms) INSERT INTO "answers" ("body", "created_at", "updated_at", "question_id", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["body", "23gq3ga"], ["created_at", "2017-10-31 14:31:18.457710"], ["updated_at", "2017-10-31 14:31:18.457710"], ["question_id", 188], ["user_id", 40]]
(0.6ms) COMMIT
Rendering answers/create.js.erb
Attachment Load (0.5ms) SELECT "attachments".* FROM "attachments" WHERE "attachments"."attachable_id" = $1 AND "attachments"."attachable_type" = $2 [["attachable_id", 928], ["attachable_type", "Answer"]]
Rendered answers/_answer.html.slim (7.0ms) [cache miss]
Rendered shared/_errors.html.slim (2.4ms) [cache miss]
Rendered answers/create.js.erb (360.0ms)
[ActionCable] Broadcasting to question_answers_188: #<Answer id: 928, body: "23gq3ga", created_at: "2017-10-31 14:31:18", updated_at: "2017-10-31 14:31:18", question_id: 188, user_id: 40, best: false>
Completed 200 OK in 751ms (Views: 556.6ms | ActiveRecord: 3.4ms)
AnswersChannel transmitting {"id"=>928, "body"=>"23gq3ga", "created_at"=>"2017-10-31T14:31:18.457Z", "updated_at"=>"2017-10-31T14:31:18.457Z", "question_id"=>188, "user_id"=>40, "best"=>false} (via streamed from question_answers_188)
AnswersChannel transmitting {"id"=>928, "body"=>"23gq3ga", "created_at"=>"2017-10-31T14:31:18.457Z", "updated_at"=>"2017-10-31T14:31:18.457Z", "question_id"=>188, "user_id"=>40, "best"=>false} (via streamed from question_answers_188)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment