Skip to content

Instantly share code, notes, and snippets.

@maltebar
Created May 2, 2015 16:12
Show Gist options
  • Select an option

  • Save maltebar/dea69c3a0aa9a3028eef to your computer and use it in GitHub Desktop.

Select an option

Save maltebar/dea69c3a0aa9a3028eef to your computer and use it in GitHub Desktop.
request/response log
Started POST "/conversations" for 108.20.233.55 at 2015-05-02 12:08:21 -0400
Processing by ConversationsController#create as */*
Parameters: {"sender_id"=>"7", "recipient_id"=>"5", "comment_id"=>"8"}
User Load (1.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 ORDER BY "users"."id" ASC LIMIT 1
Conversation Load (0.9ms) SELECT "conversations".* FROM "conversations" WHERE ((conversations.sender_id ='7' AND conversations.recipient_id ='5' AND conversations.comment_id ='8') OR (conversations.sender_id ='5' AND conversations.recipient_id ='7' AND conversations.comment_id ='8'))
Conversation Load (0.6ms) SELECT "conversations".* FROM "conversations" WHERE ((conversations.sender_id ='7' AND conversations.recipient_id ='5' AND conversations.comment_id ='8') OR (conversations.sender_id ='5' AND conversations.recipient_id ='7' AND conversations.comment_id ='8')) ORDER BY "conversations"."id" ASC LIMIT 1
Completed 200 OK in 17ms (Views: 0.3ms | ActiveRecord: 7.3ms)
Started GET "/assignments/conversations/3" for 108.20.233.55 at 2015-05-02 12:08:21 -0400
Processing by ConversationsController#show as HTML
Parameters: {"id"=>"3"}
User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 ORDER BY "users"."id" ASC LIMIT 1
Conversation Load (0.3ms) SELECT "conversations".* FROM "conversations" WHERE "conversations"."id" = $1 LIMIT 1 [["id", 3]]
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]]
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]]
Message Exists (6.6ms) SELECT 1 AS one FROM "messages" WHERE "messages"."conversation_id" = $1 LIMIT 1 [["conversation_id", 3]]
Message Load (0.3ms) SELECT "messages".* FROM "messages" WHERE "messages"."conversation_id" = $1 [["conversation_id", 3]]
CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]]
CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]]
CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]]
CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]]
CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]]
Rendered messages/_message.html.erb (7.3ms)
Rendered conversations/show.html.erb (41.7ms)
Completed 200 OK in 78ms (Views: 47.8ms | ActiveRecord: 13.2ms)
Started POST "/conversations/3/messages" for 108.20.233.55 at 2015-05-02 12:08:26 -0400
Processing by MessagesController#create as HTML
Parameters: {"utf8"=>"✓", "message"=>{"body"=>"yes"}, "authenticity_token"=>"nlhHVLDig/UwZqqRAD+rNpggiHeaE0TvfhY9WH7h3sE=", "conversation_id"=>"3"}
User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 ORDER BY "users"."id" ASC LIMIT 1
Conversation Load (0.4ms) SELECT "conversations".* FROM "conversations" WHERE "conversations"."id" = $1 LIMIT 1 [["id", 3]]
(0.3ms) BEGIN
SQL (0.6ms) INSERT INTO "messages" ("body", "conversation_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["body", "yes"], ["conversation_id", 3], ["created_at", "2015-05-02 16:08:26.977847"], ["updated_at", "2015-05-02 16:08:26.977847"], ["user_id", 7]]
(1.7ms) COMMIT
Completed 500 Internal Server Error in 16ms
ActionView::MissingTemplate (Missing template messages/create, application/create with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in:
* "/Users/maltebar/Desktop/projc/app/views"
* "/Users/maltebar/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/app/views"
):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment