From 6fc7ec9d8825a6ba5fdb58397ff0361680370baf Mon Sep 17 00:00:00 2001 From: lovelyzhang Date: Thu, 22 Dec 2016 23:23:22 +0800 Subject: [PATCH] fix comments bugs and modify some style css --- app/helpers/chat_helper.rb | 1 - app/helpers/comments_helper.rb | 2 +- app/views/layouts/_head.html.erb | 0 app/views/layouts/_refer.html.erb | 8 +- app/views/main/main.html.erb | 11 +- app/views/micro_posts/show.html.erb | 6 +- db/development.sqlite3 | Bin 53248 -> 53248 bytes log/development.log | 6480 +++++++++++++++++++++++++++ public/stylesheets/mystyle.css | 30 +- 9 files changed, 6515 insertions(+), 23 deletions(-) delete mode 100644 app/views/layouts/_head.html.erb diff --git a/app/helpers/chat_helper.rb b/app/helpers/chat_helper.rb index 08e5af9..51620e3 100644 --- a/app/helpers/chat_helper.rb +++ b/app/helpers/chat_helper.rb @@ -37,7 +37,6 @@ module ChatHelper recieve_user: [user.id, chat_with.id]) if messages.length >= 1 - p "===================================" messages = messages.order(create_time: :asc) messages.each do |message| if message.send_user == user.id diff --git a/app/helpers/comments_helper.rb b/app/helpers/comments_helper.rb index dc21312..29058cf 100644 --- a/app/helpers/comments_helper.rb +++ b/app/helpers/comments_helper.rb @@ -2,7 +2,7 @@ module CommentsHelper def get_micropost_comments micropost_id comments_array = Array.new() micropost = MicroPost.find_by(id: micropost_id) - comments = micropost.comments + comments = micropost.comments.order(comment_time: :desc) if !comments.empty? comments.each do |com| temp = Hash.new() diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb deleted file mode 100644 index e69de29..0000000 diff --git a/app/views/layouts/_refer.html.erb b/app/views/layouts/_refer.html.erb index 39a0628..8d2e4a6 100644 --- a/app/views/layouts/_refer.html.erb +++ b/app/views/layouts/_refer.html.erb @@ -1,6 +1,3 @@ - - - @@ -71,4 +68,9 @@ + + + + + \ No newline at end of file diff --git a/app/views/main/main.html.erb b/app/views/main/main.html.erb index 0e34366..db0bf4c 100644 --- a/app/views/main/main.html.erb +++ b/app/views/main/main.html.erb @@ -112,14 +112,12 @@ 'src=' + userpic + '/>' + - '
' + '' + username + '' + - '

' + + '

' + comment + '

' + - '
' + ''; return commentElem; @@ -137,7 +135,7 @@ comments.find(".comment").remove(); comments.find("p").remove(); if (data["comments"].length == 0) { - comments.prepend("

无评论

"); + comments.prepend("

无评论

"); } else { var comments_array = data["comments"]; @@ -168,6 +166,9 @@ $(".makecomment").bind("keyup", function (e) { var inputText = $(this).val(); + if ( inputText.length <= 0 ) { + return; + } var username = ""; var userpic = ""; var enterObject = $(this); @@ -181,8 +182,10 @@ url: '/newcomment', success: function (data, textStatus, jqXHR) { if (data["username"] && data["userpic"]) { + enterObject.parent().children("p").remove(); enterObject.before(comment_process(data["username"], data["userpic"], inputText)); } + $(".makecomment").val(""); } }); } diff --git a/app/views/micro_posts/show.html.erb b/app/views/micro_posts/show.html.erb index a5b6733..55c0772 100644 --- a/app/views/micro_posts/show.html.erb +++ b/app/views/micro_posts/show.html.erb @@ -37,9 +37,9 @@
-

- 图片 -

+
+ 上传图片占位符 +
diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 5f98fa08995045b201b940f8c8ee02cae6c59069..44df7254901471707ffc34470ae1a902633da7c9 100644 GIT binary patch delta 2625 zcmb7_&1)QG9LHz7W-^<7i&0yf7EBNkDjl9@p0}Af6t`aN-{7uIT!byCTdeolKr7Lr zBt&f*0*ylTW>SL~WlIi%7a@4|(9>qS;$iOvi@)cYopqjPr$S*53!izu-{<%GbawKc zo&4IF+>Q0KZ{%*=TWYoE=BxSq%enWjG(T)#zS_R_(KUPj&-S_3XYJCmRlQL8w*0tU zFAYn}`-`&|OVP^76Gf|L)pE7kO3^M_MExx|m-@H2dIz6kJnU{^*8lP5VE0Q8VSXNa z=RI!$vk>zT5tj=>2tJXGC=2{26X`H-SS(<#zrE^t{abhUhuvRuxxz-X`&JdxkWy&} zZj`W%qweCyg~Q+cdAnp)zph@a^eP`$&X#{Dzgc=vib@N`!{YMHKQo&%q;OQYT9|Y8 zoJ-SxPk%Cf&i>tg&o13t`C}@2d)~3m6d>^0C_G!gtLKFta|ssk%O(N$(UVEzv}2uC z`n`kC{`%s!As>N04qU;RM+E+qmpGASb5h>}1M zo`qu4IF;zf`N`1tTp>W5PKrpv7|RGOA<@!F$9hTSXR!AT{D$3?ye=fWjJlAY3892= zh%Nh!B=r|$1O=$@!|gi{x2|hnMj?nGxQ$ORGBT79&OIZ7G5nq$nN&VSGy}!A8ymm{eN25&w zpNf!SIcQYBLA7-S z{wdO|X1QqTh66Bk+!cruWJ-;Q&qp(z@=u{=CCkMO9)}njmodt;Mgad25dvB_wXSvY zPT8?ui6$~;96&H2E@d9mmjpM=pMlu!}`N z1EUD?sRH5y)3(R>j3QB^km&c+{x(v5^+l@JcEl%C!+X-)sXmF^^0u8&w`R7DB`3J?v9 z(M^+<{S;Ota5;xpPJ2XExIiM#InviJHHy&Eb53aP9+f(tE`;U(7+`kc)ldS*% delta 284 zcmZozz}&Ead4e=!)t!aMGF{MSeaN@85!xBo0%J$SujnO z-LJU${hq^&j2s|&egjJ@ATl=AvoJTXG&KWCKj&fQd&0oKkl%^#311=5+(f?mbQTT< zZAPG}j!$;R=B8JYsE(=)cTFf%a6CSzh~Xlh`A dTZVywQB4wTQ4BK&gE%M1%Dl|YAI=Fd0s!=pO*a4l diff --git a/log/development.log b/log/development.log index fd796f5..3a88565 100644 --- a/log/development.log +++ b/log/development.log @@ -172204,3 +172204,6483 @@ Processing by ChatController#notify as JSON Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:04:47 +0800 + ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by ChatController#notify as JSON + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 52ms (Views: 0.3ms | ActiveRecord: 1.6ms) + + +Started GET "/" for 127.0.0.1 at 2016-12-22 22:05:07 +0800 +Processing by LoginController#init as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Redirected to http://localhost:3000/main +Completed 302 Found in 5ms (ActiveRecord: 0.1ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:05:07 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.6ms) + Rendered main/main.html.erb within layouts/application (4.4ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 40ms (Views: 18.0ms | ActiveRecord: 1.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:05:08 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:05:18 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:05:28 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:05:38 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:05:45 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.6ms) + Rendered micro_posts/show.html.erb within layouts/application (3.5ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 19ms (Views: 12.4ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:05:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:05:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:06:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:06:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:06:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:06:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:06:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:06:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:07:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:07:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:07:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:07:36 +0800 +Processing by ChatController#notify as JSON + User Load (9.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 12ms (Views: 0.1ms | ActiveRecord: 9.7ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:07:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:07:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:08:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:08:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:08:24 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered micro_posts/show.html.erb within layouts/application (2.8ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 17ms (Views: 10.4ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:08:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:08:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:08:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2016-12-22 22:08:53 +0800 +Processing by LoginController#init as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ? [["LIMIT", 1]] + Rendering login/init.html.erb within layouts/application + Rendered login/init.html.erb within layouts/application (1.4ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.1ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:08:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/login?method=post" for 127.0.0.1 at 2016-12-22 22:09:02 +0800 +Processing by LoginController#login as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fczAnoMuKfxVDnP5HMeM2SyPt6D1A2tA9v87hjSG1ZHBAdAf1KQx8S2sZ7pSwp6joNkyIaAOVYMrWs1wn6DvEA==", "email"=>"zhangyu@163.com", "password"=>"[FILTERED]", "method"=>"post"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "zhangyu@163.com"], ["LIMIT", 1]] +Redirected to http://localhost:3000/main +Completed 302 Found in 74ms (ActiveRecord: 0.2ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:09:02 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.6ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 16ms (Views: 11.4ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:02 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:09:03 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered micro_posts/show.html.erb within layouts/application (2.9ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:09:35 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (2.6ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.6ms) +Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:09:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:10:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:10:07 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered micro_posts/show.html.erb within layouts/application (3.0ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 18ms (Views: 11.4ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:10:08 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2016-12-22 22:10:28 +0800 +Processing by LoginController#init as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Redirected to http://localhost:3000/main +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:10:28 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.9ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:10:29 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:10:31 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.7ms) + Rendered micro_posts/show.html.erb within layouts/application (3.7ms) + Rendered layouts/_title.html.erb (0.4ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 15ms (Views: 11.5ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:10:31 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:10:41 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:10:51 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:11:01 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:11:11 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:11:21 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:11:31 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:11:41 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:11:51 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:12:01 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:12:11 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:12:15 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered micro_posts/show.html.erb within layouts/application (2.4ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 14ms (Views: 9.3ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:12:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:12:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:12:34 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (3.1ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:12:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:12:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:12:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:13:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:13:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:13:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:13:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:13:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:13:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:14:01 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (2.5ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:14:02 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:14:12 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:14:22 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:14:32 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:14:42 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:14:52 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:15:02 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:15:02 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (2.2ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:15:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:15:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:15:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:15:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:15:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:15:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:15:55 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (2.3ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:15:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:16:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:16:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:16:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:16:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:16:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:16:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:17:04 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered micro_posts/show.html.erb within layouts/application (2.5ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 15ms (Views: 9.8ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:17:04 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:17:14 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:17:15 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered main/main.html.erb within layouts/application (3.3ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 17ms (Views: 11.8ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:17:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 22:17:16 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.4ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 21ms (Views: 0.3ms | ActiveRecord: 1.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:17:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 22:17:28 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=4" for 127.0.0.1 at 2016-12-22 22:17:34 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"4"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 4], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 4]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:17:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:17:40 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:17:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:17:47 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 22:17:53 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:17:55 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.8ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:17:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/chat" for 127.0.0.1 at 2016-12-22 22:17:57 +0800 +Processing by ChatController#index as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Message Load (0.1ms) SELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", true]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Message Load (0.1ms) SELECT DISTINCT "messages"."recieve_user" FROM "messages" WHERE "messages"."send_user" = ? [["send_user", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Message Load (0.1ms) SELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] + Rendering chat/index.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered chat/index.html.erb within layouts/application (2.8ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 26ms (Views: 11.8ms | ActiveRecord: 0.8ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:17:57 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/chat?chat_with=%E7%AE%A1%E7%90%86%E5%91%98" for 127.0.0.1 at 2016-12-22 22:18:01 +0800 +Processing by ChatController#index as JSON + Parameters: {"chat_with"=>"管理员"} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Message Load (0.1ms) SELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", true]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Message Load (0.1ms) SELECT DISTINCT "messages"."recieve_user" FROM "messages" WHERE "messages"."send_user" = ? [["send_user", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Message Load (0.1ms) SELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT ? [["name", "管理员"], ["LIMIT", 1]] +  (0.0ms) begin transaction + Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."send_user" IN (1, 2) AND "messages"."recieve_user" IN (1, 2)  + Message Load (0.1ms) SELECT "messages".* FROM "messages" WHERE "messages"."send_user" IN (1, 2) AND "messages"."recieve_user" IN (1, 2) ORDER BY "messages"."create_time" ASC  + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) commit transaction +Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.9ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:18:01 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/logout" for 127.0.0.1 at 2016-12-22 22:18:05 +0800 +Processing by LoginController#logout as HTML +Redirected to http://localhost:3000/login +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2016-12-22 22:18:05 +0800 +Processing by LoginController#init as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ? [["LIMIT", 1]] + Rendering login/init.html.erb within layouts/application + Rendered login/init.html.erb within layouts/application (1.2ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.1ms) + + +Started POST "/login?method=post" for 127.0.0.1 at 2016-12-22 22:18:17 +0800 +Processing by LoginController#login as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7hD9MgGlKbfR0STqfsy1LDgl6oubQI2mCv69Wp5ATJWmR8bpejLi9me052QkvSycRFFv72jpk9UtBpvbwJCoUA==", "email"=>"zhangyu@163.com", "password"=>"[FILTERED]", "method"=>"post"} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "zhangyu@163.com"], ["LIMIT", 1]] +Redirected to http://localhost:3000/main +Completed 302 Found in 66ms (ActiveRecord: 0.1ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:18:17 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered main/main.html.erb within layouts/application (2.7ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 16ms (Views: 10.1ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:18:17 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 22:18:19 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:18:24 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (2.4ms) + Rendered layouts/_title.html.erb (0.4ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:18:24 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:18:34 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:18:44 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:18:54 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:19:04 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:19:14 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:19:24 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:19:34 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:19:44 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:19:54 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:20:04 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:20:06 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.6ms) + Rendered micro_posts/show.html.erb within layouts/application (3.9ms) + Rendered layouts/_title.html.erb (0.4ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 21ms (Views: 14.6ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:20:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:20:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:20:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:20:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:20:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:20:49 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (2.5ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 15ms (Views: 9.8ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:20:50 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:21:00 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:21:10 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:21:20 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:21:30 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:21:39 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered micro_posts/show.html.erb within layouts/application (2.8ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:21:40 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:21:50 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:22:00 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:22:10 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:22:20 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:22:30 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:22:40 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:22:50 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:23:00 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:23:10 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:23:20 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:23:30 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:23:40 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:23:50 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:23:52 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered micro_posts/show.html.erb within layouts/application (2.3ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:23:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:24:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:24:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:24:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:24:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:24:42 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (2.6ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:24:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:24:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:25:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:25:08 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (2.6ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 15ms (Views: 10.3ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:25:08 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:25:18 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 22:25:23 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (3.7ms) + Rendered micro_posts/show.html.erb within layouts/application (6.0ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.6ms) +Completed 200 OK in 18ms (Views: 13.9ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:25:24 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:25:28 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (3.1ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 19ms (Views: 13.9ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:25:29 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 22:25:30 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:25:39 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:25:49 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:25:59 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:26:09 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:26:19 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:26:29 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:26:34 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered main/main.html.erb within layouts/application (3.0ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:26:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:26:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:26:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:26:58 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered main/main.html.erb within layouts/application (3.3ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 16ms (Views: 11.3ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:26:59 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:27:09 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:27:19 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:27:29 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:27:39 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:27:46 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:27:49 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:27:51 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"你好", "authenticity_token"=>"8F4CK80kBiJNI0iawduI7F8dYTB+3w5j/nByD4QNCWA4BsX6qUOAxjSo3xiXk8LPUI7fVxl1vLD2SJHtLq57uA=="} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.5ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "你好"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:27:51 UTC], ["created_at", 2016-12-22 14:27:51 UTC], ["updated_at", 2016-12-22 14:27:51 UTC]] +  (1.8ms) commit transaction +Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 2.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:27:59 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:28:09 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:28:19 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:28:29 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:28:30 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"", "authenticity_token"=>"8F4CK80kBiJNI0iawduI7F8dYTB+3w5j/nByD4QNCWA4BsX6qUOAxjSo3xiXk8LPUI7fVxl1vLD2SJHtLq57uA=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:28:37 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"最近怎么样?", "authenticity_token"=>"8F4CK80kBiJNI0iawduI7F8dYTB+3w5j/nByD4QNCWA4BsX6qUOAxjSo3xiXk8LPUI7fVxl1vLD2SJHtLq57uA=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.9ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "最近怎么样?"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:28:37 UTC], ["created_at", 2016-12-22 14:28:37 UTC], ["updated_at", 2016-12-22 14:28:37 UTC]] +  (2.6ms) commit transaction +Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 3.8ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:28:39 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"最近怎么样?", "authenticity_token"=>"8F4CK80kBiJNI0iawduI7F8dYTB+3w5j/nByD4QNCWA4BsX6qUOAxjSo3xiXk8LPUI7fVxl1vLD2SJHtLq57uA=="} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "最近怎么样?"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:28:39 UTC], ["created_at", 2016-12-22 14:28:39 UTC], ["updated_at", 2016-12-22 14:28:39 UTC]] +  (2.3ms) commit transaction +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:28:39 +0800 +Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 2.8ms) + + +Processing by ChatController#notify as JSON + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.8ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:28:42 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"最近怎么样?", "authenticity_token"=>"8F4CK80kBiJNI0iawduI7F8dYTB+3w5j/nByD4QNCWA4BsX6qUOAxjSo3xiXk8LPUI7fVxl1vLD2SJHtLq57uA=="} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "最近怎么样?"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:28:42 UTC], ["created_at", 2016-12-22 14:28:42 UTC], ["updated_at", 2016-12-22 14:28:42 UTC]] +  (2.4ms) commit transaction +Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 2.9ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:28:43 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"最近怎么样?", "authenticity_token"=>"8F4CK80kBiJNI0iawduI7F8dYTB+3w5j/nByD4QNCWA4BsX6qUOAxjSo3xiXk8LPUI7fVxl1vLD2SJHtLq57uA=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (2.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.3ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "最近怎么样?"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:28:43 UTC], ["created_at", 2016-12-22 14:28:43 UTC], ["updated_at", 2016-12-22 14:28:43 UTC]] +  (0.7ms) commit transaction +Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 3.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:28:49 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:28:50 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.2ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:28:59 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:29:09 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:29:19 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:29:29 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:29:39 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:29:49 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/activity?micropost_id=2&join=true" for 127.0.0.1 at 2016-12-22 22:29:55 +0800 +Processing by MainController#activity as JSON + Parameters: {"micropost_id"=>"2", "join"=>"true"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) UPDATE "micro_posts" SET "engage_people" = ?, "updated_at" = ? WHERE "micro_posts"."id" = ? [["engage_people", 1], ["updated_at", 2016-12-22 14:29:55 UTC], ["id", 2]] +  (2.3ms) commit transaction +Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 2.8ms) + + +Started GET "/activity?micropost_id=2&join=false" for 127.0.0.1 at 2016-12-22 22:29:56 +0800 +Processing by MainController#activity as JSON + Parameters: {"micropost_id"=>"2", "join"=>"false"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) UPDATE "micro_posts" SET "engage_people" = ?, "updated_at" = ? WHERE "micro_posts"."id" = ? [["engage_people", 0], ["updated_at", 2016-12-22 14:29:56 UTC], ["id", 2]] +  (2.3ms) commit transaction +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 2.8ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:29:59 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:30:07 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.6ms) + Rendered main/main.html.erb within layouts/application (3.3ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.7ms) +Completed 200 OK in 21ms (Views: 15.0ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:30:08 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 22:30:16 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:30:18 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:30:28 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:30:38 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:30:48 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:30:58 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:31:08 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:31:18 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:31:28 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:31:38 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:31:48 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:31:58 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:32:08 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:32:18 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:32:28 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:32:35 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (3.0ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:32:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 22:32:37 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=4" for 127.0.0.1 at 2016-12-22 22:32:40 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"4"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 4], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 4]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 22:32:42 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 3], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:32:44 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.2ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.7ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:32:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:32:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:33:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:33:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:33:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:33:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:33:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:33:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:34:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:34:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:34:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:34:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:34:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:34:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:35:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:35:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:35:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:35:37 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:35:44 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.8ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:35:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=4" for 127.0.0.1 at 2016-12-22 22:35:50 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"4"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 4], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 4]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:35:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:36:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:36:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:36:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:36:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:36:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:36:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:37:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:37:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:37:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:37:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:37:44 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.8ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 16ms (Views: 10.6ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:37:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 22:37:45 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=4" for 127.0.0.1 at 2016-12-22 22:37:47 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"4"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 4], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 4]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 22:37:52 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 3], ["LIMIT", 1]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:37:54 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:37:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:38:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:38:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:38:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:38:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:38:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:38:52 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.6ms) + Rendered main/main.html.erb within layouts/application (2.9ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 17ms (Views: 10.1ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:38:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 22:38:54 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=4" for 127.0.0.1 at 2016-12-22 22:38:56 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"4"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 4], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 4]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 22:38:58 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 3], ["LIMIT", 1]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:39:01 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:39:03 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:39:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:39:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:39:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:39:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:39:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:39:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:40:01 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (4.3ms) + Rendered main/main.html.erb within layouts/application (7.2ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 20ms (Views: 14.8ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:40:02 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:40:04 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:40:12 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:40:22 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:40:32 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:40:42 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:40:52 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:41:02 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:41:12 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:41:14 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.8ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:41:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:41:17 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:41:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:41:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:41:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:41:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:42:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:42:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:42:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:42:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:42:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:42:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:43:04 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.6ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:43:04 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:43:06 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:43:14 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:43:24 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:43:34 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:43:44 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:43:45 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (3.0ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 18ms (Views: 10.6ms | ActiveRecord: 0.7ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:43:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:43:46 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:43:48 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:43:49 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:43:53 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.2ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:43:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:43:56 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"2", "content"=>"你好", "authenticity_token"=>"/OSvYF6ONY7Wu2yRPB+ZkQsr7jQX+qV+dQKhkiQPxoo0vGixOumzaq8w+xNqV9OyBLhQU3BQF619OkJwjqy0Ug=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "你好"], ["user_id", 1], ["micro_post_id", 2], ["comment_time", 2016-12-22 14:43:56 UTC], ["created_at", 2016-12-22 14:43:56 UTC], ["updated_at", 2016-12-22 14:43:56 UTC]] +  (2.4ms) commit transaction +Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 3.0ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:44:01 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"2", "content"=>"我是", "authenticity_token"=>"/OSvYF6ONY7Wu2yRPB+ZkQsr7jQX+qV+dQKhkiQPxoo0vGixOumzaq8w+xNqV9OyBLhQU3BQF619OkJwjqy0Ug=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "我是"], ["user_id", 1], ["micro_post_id", 2], ["comment_time", 2016-12-22 14:44:01 UTC], ["created_at", 2016-12-22 14:44:01 UTC], ["updated_at", 2016-12-22 14:44:01 UTC]] +  (2.4ms) commit transaction +Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 3.0ms) + + +Started GET "/activity?micropost_id=2&join=true" for 127.0.0.1 at 2016-12-22 22:44:03 +0800 +Processing by MainController#activity as JSON + Parameters: {"micropost_id"=>"2", "join"=>"true"} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) UPDATE "micro_posts" SET "engage_people" = ?, "updated_at" = ? WHERE "micro_posts"."id" = ? [["engage_people", 1], ["updated_at", 2016-12-22 14:44:03 UTC], ["id", 2]] +  (2.1ms) commit transaction +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 2.5ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:44:04 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.2ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 2]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:44:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:44:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:44:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:44:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:44:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:44:53 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.7ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:44:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:44:54 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:44:58 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 2]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 22:45:01 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 3], ["LIMIT", 1]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:45:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:45:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:45:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:45:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:45:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:45:52 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.3ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.9ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 18ms (Views: 11.3ms | ActiveRecord: 0.7ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:45:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 22:45:53 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 3], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:45:55 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 2]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:45:57 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.5ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:45:59 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"", "authenticity_token"=>"nKpUpqKVHDQQ+S2kGrjSW+oLZ5mFiLM5vJsfkm2Igy1U8pN3xvKa0GlyuiZM8Jh45ZjZ/uIiAeq0o/xwxyvx9Q=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:46:01 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"还不错", "authenticity_token"=>"nKpUpqKVHDQQ+S2kGrjSW+oLZ5mFiLM5vJsfkm2Igy1U8pN3xvKa0GlyuiZM8Jh45ZjZ/uIiAeq0o/xwxyvx9Q=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "还不错"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:46:01 UTC], ["created_at", 2016-12-22 14:46:01 UTC], ["updated_at", 2016-12-22 14:46:01 UTC]] +  (2.2ms) commit transaction +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.7ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:46:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:46:05 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"是吗", "authenticity_token"=>"nKpUpqKVHDQQ+S2kGrjSW+oLZ5mFiLM5vJsfkm2Igy1U8pN3xvKa0GlyuiZM8Jh45ZjZ/uIiAeq0o/xwxyvx9Q=="} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "是吗"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:46:05 UTC], ["created_at", 2016-12-22 14:46:05 UTC], ["updated_at", 2016-12-22 14:46:05 UTC]] +  (2.5ms) commit transaction +Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 3.0ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:46:10 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:46:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:46:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:46:26 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 2]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 22:46:28 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 3], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:46:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:46:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:46:52 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered main/main.html.erb within layouts/application (3.2ms) + Rendered layouts/_title.html.erb (0.5ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 17ms (Views: 12.2ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:46:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 22:46:53 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 3], ["LIMIT", 1]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:46:55 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] + Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 2]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:46:58 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:47:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:47:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:47:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:47:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:47:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:47:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:48:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:48:12 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (7.5ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 23ms (Views: 15.8ms | ActiveRecord: 0.7ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:48:12 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:48:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:48:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:48:37 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.6ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 16ms (Views: 10.2ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:48:38 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:48:46 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:48:48 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:48:58 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:49:08 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:49:18 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:49:28 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:49:38 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:49:48 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:49:58 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:50:05 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (3.1ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 18ms (Views: 12.3ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:50:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:50:06 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.4ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:50:15 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"测试一下", "authenticity_token"=>"1dHh3PWmRG1aZqL4naSe6YgfAI7wqjTrQkUyS7uz9qcdiSYNkcHCiSPtNXrL7NTKh4y+6ZcAhjhKfdGpERCEfw=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.3ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "测试一下"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:50:15 UTC], ["created_at", 2016-12-22 14:50:15 UTC], ["updated_at", 2016-12-22 14:50:15 UTC]] +  (2.4ms) commit transaction +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.0ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:50:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:50:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:50:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:50:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:50:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:51:03 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (3.0ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 16ms (Views: 10.8ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:51:04 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:51:05 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 14ms (Views: 5.9ms | ActiveRecord: 0.5ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:51:12 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"测试一下2", "authenticity_token"=>"kk9uK8sK/k7769fdS78KX/+rNE8KDQxEMDCkXQAdTmZaF6n6r214qoJgQF8d90B88DiKKG2nvpc4CEe/qr48vg=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "测试一下2"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:51:12 UTC], ["created_at", 2016-12-22 14:51:12 UTC], ["updated_at", 2016-12-22 14:51:12 UTC]] +  (2.5ms) commit transaction +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.0ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:51:14 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:51:24 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:51:34 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:51:44 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:51:54 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:52:04 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:52:09 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.4ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 16ms (Views: 9.5ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:52:09 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:52:10 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 0.5ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:52:16 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"测试一下3", "authenticity_token"=>"jII/Otnx4ohXfeJhr9s0LR8wDi/k7KpkWotBZhEWxNJE2vjrvZZkbC72deP5k34OEKOwSINGGLdSs6KEu7W2Cg=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "测试一下3"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:52:16 UTC], ["created_at", 2016-12-22 14:52:16 UTC], ["updated_at", 2016-12-22 14:52:16 UTC]] +  (2.4ms) commit transaction +Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 2.9ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:52:19 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:52:29 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:52:39 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:52:49 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:52:59 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:53:09 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:53:19 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:53:29 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:53:39 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:53:49 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:53:59 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:54:09 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:54:19 +0800 +Processing by ChatController#notify as JSON + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:54:20 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.7ms) + Rendered main/main.html.erb within layouts/application (3.2ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 18ms (Views: 12.3ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:54:21 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:54:21 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.5ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:54:30 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"测试一下4", "authenticity_token"=>"7sA97fI2i9sYynr3WDpggFuSTDoggh2NHPgk0FD6DvsmmPo8llENP2FB7XUOciqjVAHyXUcor14UwMcy+ll8Iw=="} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "测试一下4"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:54:30 UTC], ["created_at", 2016-12-22 14:54:30 UTC], ["updated_at", 2016-12-22 14:54:30 UTC]] +  (2.6ms) commit transaction +Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 3.1ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:54:31 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:54:38 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:54:41 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:54:51 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:55:01 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:55:11 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:55:21 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:55:31 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:55:33 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.3ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 14ms (Views: 9.3ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:55:34 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:55:35 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:55:44 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:55:54 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:56:04 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:56:13 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered main/main.html.erb within layouts/application (3.3ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 16ms (Views: 11.1ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:56:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:56:15 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:56:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 22:56:32 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Comment Exists (0.2ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 2], ["LIMIT", 1]] + Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 2]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:56:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 22:56:34 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 3], ["LIMIT", 1]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:56:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:56:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:57:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:57:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:57:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:57:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:57:35 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.3ms) + Rendered layouts/_title.html.erb (0.4ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 16ms (Views: 10.3ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:57:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:57:37 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:57:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:57:51 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"是吗", "authenticity_token"=>"EnYbswxZXmL9vlfurp2Zjho3R7bd/lk7Yex6pDjU6OzaLtxiaD7YhoQ1wGz41dOtFaT50bpU6+hp1JlGkneaNA=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "是吗"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:57:51 UTC], ["created_at", 2016-12-22 14:57:51 UTC], ["updated_at", 2016-12-22 14:57:51 UTC]] +  (2.3ms) commit transaction +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.9ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:57:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:58:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:58:13 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.7ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:58:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:58:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:58:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:58:37 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.6ms) + Rendered main/main.html.erb within layouts/application (3.4ms) + Rendered layouts/_title.html.erb (0.4ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:58:37 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:58:39 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.5ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 22:58:42 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"好吧", "authenticity_token"=>"M9rJVorKRwdzLIHdzml5+7t81Vb3psJu0Va++gPktrz7gg6H7q3B4wqnFl+YITPYtO9rMZAMcL3Zbl0YqUfEZA=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "好吧"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 14:58:43 UTC], ["created_at", 2016-12-22 14:58:43 UTC], ["updated_at", 2016-12-22 14:58:43 UTC]] +  (2.6ms) commit transaction +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.1ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:58:47 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:58:57 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:59:07 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:59:17 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:59:27 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (2.0ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 20ms (Views: 0.6ms | ActiveRecord: 2.7ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:59:27 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:59:28 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.6ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:59:29 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 0.6ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:59:33 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 0.6ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 22:59:34 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered main/main.html.erb within layouts/application (3.2ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:59:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:59:36 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:59:40 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.6ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:59:41 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 0.7ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:59:42 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.6ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 22:59:43 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:59:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 22:59:55 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:00:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:00:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:00:16 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.5ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.8ms) +Completed 200 OK in 21ms (Views: 11.4ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:00:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:00:19 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:00:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:00:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:00:45 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.3ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 16ms (Views: 10.1ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:00:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:00:48 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:00:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:00:56 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.6ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:00:58 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:01:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:01:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:01:18 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:01:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:01:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:01:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:01:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:02:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:02:11 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (2.8ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 16ms (Views: 10.7ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:02:12 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:02:13 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.2ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.8ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:02:22 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 23:02:24 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"新评论1", "authenticity_token"=>"d12ri+U4LSq2pcLZEi/6T4e9EZUEeRjFOEa0z9T5k3y/BWxagV+rzs8uVVtEZ7BsiC6v8mPTqhYwflctflrhpA=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "新评论1"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 15:02:24 UTC], ["created_at", 2016-12-22 15:02:24 UTC], ["updated_at", 2016-12-22 15:02:24 UTC]] +  (2.2ms) commit transaction +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 2.7ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:02:28 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 1], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:02:32 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:02:42 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:02:52 +0800 +Processing by ChatController#notify as JSON + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:03:02 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:03:12 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:03:22 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:03:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:03:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:03:54 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:04:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:04:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:04:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:04:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:04:44 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 26ms (Views: 0.2ms | ActiveRecord: 1.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:04:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:05:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:05:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:05:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:05:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:05:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:05:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:06:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:06:14 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:06:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:06:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 20ms (Views: 0.3ms | ActiveRecord: 1.0ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:06:44 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:06:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 17ms (Views: 0.2ms | ActiveRecord: 1.0ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:06:58 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.2ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 27ms (Views: 9.6ms | ActiveRecord: 0.9ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:06:59 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:07:01 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) + + + +NoMethodError (undefined method `order' for #): + +app/helpers/comments_helper.rb:4:in `get_micropost_comments' +app/controllers/comments_controller.rb:6:in `get' + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (1.1ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.8ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (1.3ms) + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (69.4ms) +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:07:02 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) + + + +NoMethodError (undefined method `order' for #): + +app/helpers/comments_helper.rb:4:in `get_micropost_comments' +app/controllers/comments_controller.rb:6:in `get' + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.9ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (1.0ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (1.1ms) + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (59.1ms) +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:07:05 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.1ms) + + + +NoMethodError (undefined method `order' for #): + +app/helpers/comments_helper.rb:4:in `get_micropost_comments' +app/controllers/comments_controller.rb:6:in `get' + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.6ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.6ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.8ms) + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (60.8ms) +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:07:05 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) + + + +NoMethodError (undefined method `order' for #): + +app/helpers/comments_helper.rb:4:in `get_micropost_comments' +app/controllers/comments_controller.rb:6:in `get' + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.5ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.6ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.7ms) + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (54.8ms) +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:07:06 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) + + + +NoMethodError (undefined method `order' for #): + +app/helpers/comments_helper.rb:4:in `get_micropost_comments' +app/controllers/comments_controller.rb:6:in `get' + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.5ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.5ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.8ms) + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (54.6ms) +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:07:06 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) + + + +NoMethodError (undefined method `order' for #): + +app/helpers/comments_helper.rb:4:in `get_micropost_comments' +app/controllers/comments_controller.rb:6:in `get' + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.4ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.5ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.7ms) + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (56.8ms) +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:07:10 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:07:21 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:07:30 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 16ms (Views: 0.2ms | ActiveRecord: 1.0ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:07:40 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 23ms (Views: 0.2ms | ActiveRecord: 1.1ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:07:50 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:08:00 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:08:10 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:08:20 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:08:30 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:08:40 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:08:50 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:09:00 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:09:10 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 17ms (Views: 0.2ms | ActiveRecord: 1.0ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:09:24 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:09:30 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:09:40 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 19ms (Views: 0.2ms | ActiveRecord: 1.0ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:09:42 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.3ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 28ms (Views: 10.1ms | ActiveRecord: 0.9ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:09:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:09:44 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.3ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? ORDER BY "micro_posts"."comment_time" DESC [["id", 1]] +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? ORDER BY "micro_posts"."comment_time" DESC [["id", 1]] +NoMethodError (undefined method `comments' for #): + +app/helpers/comments_helper.rb:5:in `get_micropost_comments' +app/controllers/comments_controller.rb:6:in `get' + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb + MicroPost Load (0.4ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? ORDER BY "micro_posts"."comment_time" DESC [["id", 1]] + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.9ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.7ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.7ms) + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (65.3ms) +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:09:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:10:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:10:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:10:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:10:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? [["id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? [["id", 5]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? [["id", 4]] +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:10:43 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? [["id", 6]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? [["id", 2]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? [["id", 1]] +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:10:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:11:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:11:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:11:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:11:30 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (1.4ms) + Rendered main/main.html.erb within layouts/application (4.6ms) + Rendered layouts/_title.html.erb (0.6ms) + Rendered layouts/_refer.html.erb (0.7ms) +Completed 200 OK in 66ms (Views: 20.5ms | ActiveRecord: 2.0ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:11:31 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 23:11:32 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? [["id", 2]] +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `comments' for #): + +app/helpers/comments_helper.rb:5:in `get_micropost_comments' +app/controllers/comments_controller.rb:6:in `get' + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.5ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.6ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.7ms) + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (63.2ms) +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:11:34 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? [["id", 1]] +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +NoMethodError (undefined method `comments' for #): + +app/helpers/comments_helper.rb:5:in `get_micropost_comments' +app/controllers/comments_controller.rb:6:in `get' + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.6ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.6ms) + Rendering /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.6ms) + Rendered /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (61.7ms) +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:11:41 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + + MicroPost Load (0.6ms) SELECT "micro_posts".* FROM "micro_posts" +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:11:51 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:12:01 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? [["id", 1]] +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:12:11 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:12:21 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:12:31 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 23ms (Views: 0.2ms | ActiveRecord: 1.1ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:12:41 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:12:51 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:13:01 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:13:11 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + + Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 1]] +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:13:21 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:13:31 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:13:42 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:13:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:14:02 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + + Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" ASC [["micro_post_id", 1]] +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:14:14 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:14:21 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 18ms (Views: 0.2ms | ActiveRecord: 1.1ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:14:22 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.3ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 27ms (Views: 9.4ms | ActiveRecord: 0.9ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:14:22 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 23:14:23 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 2]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" ASC [["micro_post_id", 2]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 19ms (Views: 0.3ms | ActiveRecord: 0.8ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:14:25 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" ASC [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:14:32 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 23:14:37 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"11:14 测试1", "authenticity_token"=>"Mrh/Qf2l09oYMynnpm+YKK6flt58/X5ZK+wP2B8zpK764LiQmcJVPmG4vmXwJ9ILoQwouRtXzIoj1Ow6tZDWdg=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.9ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "11:14 测试1"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 15:14:37 UTC], ["created_at", 2016-12-22 15:14:37 UTC], ["updated_at", 2016-12-22 15:14:37 UTC]] +  (2.6ms) commit transaction +Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 3.7ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:14:40 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" ASC [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:14:42 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:14:52 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 16ms (Views: 0.2ms | ActiveRecord: 1.0ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:14:53 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.2ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 26ms (Views: 9.0ms | ActiveRecord: 0.9ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:14:53 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:14:55 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 19ms (Views: 0.6ms | ActiveRecord: 0.9ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 23:15:02 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"1", "content"=>"真的", "authenticity_token"=>"XYcTkz/NN5ZZyWMtKf3nMQIxHHp3q0+YNJWUEJnLGjmV39RCW6qxciBC9K9/ta0SDaKiHRAB/Us8rXfyM2ho4Q=="} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "真的"], ["user_id", 1], ["micro_post_id", 1], ["comment_time", 2016-12-22 15:15:02 UTC], ["created_at", 2016-12-22 15:15:02 UTC], ["updated_at", 2016-12-22 15:15:02 UTC]] +  (2.3ms) commit transaction +Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 2.8ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:15:03 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=1" for 127.0.0.1 at 2016-12-22 23:15:05 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"1"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.6ms) + + +Started GET "/comments?micropost_id=2" for 127.0.0.1 at 2016-12-22 23:15:07 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"2"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 2]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 2]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 23:15:10 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 3]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:15:13 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 23:15:14 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"3", "content"=>"谢谢!", "authenticity_token"=>"XYcTkz/NN5ZZyWMtKf3nMQIxHHp3q0+YNJWUEJnLGjmV39RCW6qxciBC9K9/ta0SDaKiHRAB/Us8rXfyM2ho4Q=="} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "谢谢!"], ["user_id", 1], ["micro_post_id", 3], ["comment_time", 2016-12-22 15:15:14 UTC], ["created_at", 2016-12-22 15:15:14 UTC], ["updated_at", 2016-12-22 15:15:14 UTC]] +  (0.5ms) commit transaction +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:15:23 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 23:15:25 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 3]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 3]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 23:15:26 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 3]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 3]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 23:15:27 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 3]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 3]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 23:15:28 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 3]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 3]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 23:15:28 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 3]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 3]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=3" for 127.0.0.1 at 2016-12-22 23:15:29 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"3"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 3]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 3]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/comments?micropost_id=4" for 127.0.0.1 at 2016-12-22 23:15:30 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"4"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 4]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 4]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 23:15:31 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:15:33 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 23:15:37 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered micro_posts/show.html.erb within layouts/application (2.9ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:15:38 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:15:48 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:15:58 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started POST "/newpost" for 127.0.0.1 at 2016-12-22 23:16:03 +0800 +Processing by MicroPostsController#new as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fctlD2VdexS0udHzeZGx25MVrU/TEUTgXeJaEXawK4wC8sqnLnY1Urf6SJXH/Y4j4TNkfe/xgSEY4Xo3H+8kyA==", "post_type"=>"2", "title"=>"晚上11:15测试 12月22日", "content"=>"晚上11:15测试"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "micro_posts" ("content", "post_time", "post_type", "created_at", "updated_at", "user_id", "engage_people", "title") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["content", "晚上11:15测试"], ["post_time", 2016-12-22 15:16:03 UTC], ["post_type", 2], ["created_at", 2016-12-22 15:16:03 UTC], ["updated_at", 2016-12-22 15:16:03 UTC], ["user_id", 1], ["engage_people", 0], ["title", "晚上11:15测试 12月22日"]] +  (1.9ms) commit transaction +Redirected to http://localhost:3000/microposts +Completed 302 Found in 7ms (ActiveRecord: 2.3ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 23:16:03 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered micro_posts/show.html.erb within layouts/application (2.3ms) + Rendered layouts/_title.html.erb (0.4ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:16:04 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:16:06 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.8ms) + Rendered main/main.html.erb within layouts/application (4.1ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 0.5ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:16:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=6" for 127.0.0.1 at 2016-12-22 23:16:07 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"6"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 6]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=6" for 127.0.0.1 at 2016-12-22 23:16:09 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"6"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 6]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:16:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:16:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:16:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:16:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:16:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:17:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:17:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:17:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:17:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:17:47 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:17:57 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:18:07 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:18:17 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:18:27 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:18:37 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:18:48 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:18:57 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:19:07 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:19:20 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:19:27 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:19:37 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:19:51 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:19:58 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:20:08 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:20:18 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:20:28 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:20:40 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:20:48 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:20:58 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:21:08 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:21:17 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:21:27 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:21:37 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:21:47 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:21:57 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 23:22:05 +0800 +Processing by MainController#show as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.5ms) + Rendered main/main.html.erb within layouts/application (3.6ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 20ms (Views: 11.9ms | ActiveRecord: 0.7ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:22:05 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=6" for 127.0.0.1 at 2016-12-22 23:22:06 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"6"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 6]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 23:22:12 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"6", "content"=>"测试", "authenticity_token"=>"pZeauui1WKBj397vmtxKbP2QDfweCR7HrSlIBjUUOs5tz11rjNLeRBpUSW3MlABP8gOzm3mjrBSlEavkn7dIFg=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + SQL (0.3ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "测试"], ["user_id", 1], ["micro_post_id", 6], ["comment_time", 2016-12-22 15:22:12 UTC], ["created_at", 2016-12-22 15:22:12 UTC], ["updated_at", 2016-12-22 15:22:12 UTC]] +  (2.2ms) commit transaction +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.8ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:22:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 23:22:17 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"6", "content"=>"你好", "authenticity_token"=>"pZeauui1WKBj397vmtxKbP2QDfweCR7HrSlIBjUUOs5tz11rjNLeRBpUSW3MlABP8gOzm3mjrBSlEavkn7dIFg=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.0ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "你好"], ["user_id", 1], ["micro_post_id", 6], ["comment_time", 2016-12-22 15:22:17 UTC], ["created_at", 2016-12-22 15:22:17 UTC], ["updated_at", 2016-12-22 15:22:17 UTC]] +  (2.5ms) commit transaction +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.0ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 23:22:19 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"6", "content"=>"不错", "authenticity_token"=>"pZeauui1WKBj397vmtxKbP2QDfweCR7HrSlIBjUUOs5tz11rjNLeRBpUSW3MlABP8gOzm3mjrBSlEavkn7dIFg=="} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "不错"], ["user_id", 1], ["micro_post_id", 6], ["comment_time", 2016-12-22 15:22:19 UTC], ["created_at", 2016-12-22 15:22:19 UTC], ["updated_at", 2016-12-22 15:22:19 UTC]] +  (2.7ms) commit transaction +Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 3.1ms) + + +Started POST "/newcomment" for 127.0.0.1 at 2016-12-22 23:22:25 +0800 +Processing by CommentsController#new as JSON + Parameters: {"micropost_id"=>"6", "content"=>"测试2", "authenticity_token"=>"pZeauui1WKBj397vmtxKbP2QDfweCR7HrSlIBjUUOs5tz11rjNLeRBpUSW3MlABP8gOzm3mjrBSlEavkn7dIFg=="} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) begin transaction + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "comments" ("content", "user_id", "micro_post_id", "comment_time", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["content", "测试2"], ["user_id", 1], ["micro_post_id", 6], ["comment_time", 2016-12-22 15:22:25 UTC], ["created_at", 2016-12-22 15:22:25 UTC], ["updated_at", 2016-12-22 15:22:25 UTC]] +  (2.5ms) commit transaction +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.9ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:22:25 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=6" for 127.0.0.1 at 2016-12-22 23:22:27 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"6"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 6]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 6]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.5ms) + + +Started GET "/comments?micropost_id=6" for 127.0.0.1 at 2016-12-22 23:22:29 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"6"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 6]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC [["micro_post_id", 6]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 23:22:35 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + diff --git a/public/stylesheets/mystyle.css b/public/stylesheets/mystyle.css index 0f46fcf..3defd83 100644 --- a/public/stylesheets/mystyle.css +++ b/public/stylesheets/mystyle.css @@ -37,18 +37,10 @@ height: 100px; } -.col-md-12.text-center { - margin-top: 15px; -} - .form-group .btn { margin: 0px 0px 0px 0px; } -.form-group textarea { - margin-top: 5px; -} - .btn.btn-default-outline.btn-block { margin: 3px 0 3px 0px; } @@ -97,8 +89,8 @@ .col-lg-4 .widget-container { margin-top: 15px; - margin-left: 25px; - margin-right: 25px; + margin-left: 20px; + margin-right: 20px; } .alert.alert-info { @@ -110,4 +102,20 @@ #user-page { margin-left: 50px; margin-right: 50px; -} \ No newline at end of file +} + +.col-md-12.text-center { + margin-top: 15px; + margin-bottom: 15px; +} + +#image-upload { + text-align: center; +} +.alert { + margin-bottom: 0; +} + +/*.social-wrapper .social-container .social-entry .profile-details {*/ + /*display: none;*/ +/*}*/ \ No newline at end of file