Skip to content

Instantly share code, notes, and snippets.

@Evanto
Created October 31, 2017 15:57
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 Evanto/7973ca52c735f3ad3a36b24f8cfbac9d to your computer and use it in GitHub Desktop.
Save Evanto/7973ca52c735f3ad3a36b24f8cfbac9d to your computer and use it in GitHub Desktop.
Started GET "/cable" for 10.0.2.2 at 2017-10-31 15:55:35 +0000
Cannot render console from 10.0.2.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Started GET "/cable/" [WebSocket] for 10.0.2.2 at 2017-10-31 15:55:35 +0000
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: keep-alive, Upgrade, HTTP_UPGRADE: websocket)
QuestionsChannel is transmitting the subscription confirmation
AnswersChannel is transmitting the subscription confirmation
QuestionsChannel#follow
QuestionsChannel is streaming from questions
AnswersChannel#follow
AnswersChannel is streaming from question_answers_188
Started POST "/questions/188/answers" for 10.0.2.2 at 2017-10-31 15:55:42 +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"=>"w45y45ys", "attachments_attributes"=>{"0"=>{"_destroy"=>"false"}}}, "commit"=>"Post your answer", "question_id"=>"188"}
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 40], ["LIMIT", 1]]
Question Load (0.3ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = $1 LIMIT $2 [["id", 188], ["LIMIT", 1]]
Unpermitted parameter: :_destroy
(0.2ms) BEGIN
SQL (0.5ms) INSERT INTO "answers" ("body", "created_at", "updated_at", "question_id", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["body", "w45y45ys"], ["created_at", "2017-10-31 15:55:42.574957"], ["updated_at", "2017-10-31 15:55:42.574957"], ["question_id", 188], ["user_id", 40]]
(0.3ms) 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", 935], ["attachable_type", "Answer"]]
Rendered answers/_answer.html.slim (7.7ms) [cache miss]
Rendered shared/_errors.html.slim (9.1ms) [cache miss]
Rendered answers/create.js.erb (351.2ms)
[ActionCable] Broadcasting to question_answers_188: #<Answer id: 935, body: "w45y45ys", created_at: "2017-10-31 15:55:42", updated_at: "2017-10-31 15:55:42", question_id: 188, user_id: 40, best: false>
Completed 200 OK in 747ms (Views: 545.1ms | ActiveRecord: 2.1ms)
AnswersChannel transmitting {"id"=>935, "body"=>"w45y45ys", "created_at"=>"2017-10-31T15:55:42.574Z", "updated_at"=>"2017-10-31T15:55:42.574Z", "question_id"=>188, "user_id"=>40, "best"=>false} (via streamed from question_answers_188)
AnswersChannel transmitting {"id"=>935, "body"=>"w45y45ys", "created_at"=>"2017-10-31T15:55:42.574Z", "updated_at"=>"2017-10-31T15:55:42.574Z", "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