diff --git a/.idea/runConfigurations/Development__guoren.xml b/.idea/runConfigurations/Development__guoren.xml
new file mode 100644
index 0000000..7c3f68c
--- /dev/null
+++ b/.idea/runConfigurations/Development__guoren.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/Production__guoren.xml b/.idea/runConfigurations/Production__guoren.xml
new file mode 100644
index 0000000..0d25565
--- /dev/null
+++ b/.idea/runConfigurations/Production__guoren.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/spec__guoren.xml b/.idea/runConfigurations/spec__guoren.xml
new file mode 100644
index 0000000..9dfd121
--- /dev/null
+++ b/.idea/runConfigurations/spec__guoren.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations/test__guoren.xml b/.idea/runConfigurations/test__guoren.xml
new file mode 100644
index 0000000..ae53fc4
--- /dev/null
+++ b/.idea/runConfigurations/test__guoren.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index c0fd5a4..bab5bf8 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,9 +2,10 @@
+
-
-
+
+
@@ -23,7 +24,7 @@
-
+
@@ -33,32 +34,105 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -73,7 +147,17 @@
@@ -93,7 +177,7 @@
-
+
@@ -120,6 +204,7 @@
+
@@ -138,11 +223,256 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
@@ -150,6 +480,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -198,38 +596,13 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -238,22 +611,18 @@
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -262,38 +631,31 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+ project
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -313,34 +675,36 @@
1482408182630
-
+
+
+
-
+
-
+
-
+
-
-
-
-
-
+
+
+
+
-
-
+
+
-
+
-
+
+
@@ -360,29 +724,328 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/controllers/chat_controller.rb b/app/controllers/chat_controller.rb
index 923e8c3..e4286ad 100644
--- a/app/controllers/chat_controller.rb
+++ b/app/controllers/chat_controller.rb
@@ -78,9 +78,7 @@ class ChatController < ApplicationController
ok = false
else
query_user = User.find_by(name: query_name)
- p "-----------here-------run----------"
if query_user.nil?
- p "-----------here-------run----------"
query_name = nil
ok = false
else
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb
index c9503be..a33533e 100644
--- a/app/views/users/edit.html.erb
+++ b/app/views/users/edit.html.erb
@@ -1 +1,108 @@
-<% provide(:title, @user.name) %>
\ No newline at end of file
+<% provide(:title, @user.name) %>
+
+
+
+
+
+ <%= render 'layouts/nav' %>
+
+
+
+
\ No newline at end of file
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index 44df725..c61e0df 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/log/development.log b/log/development.log
index 3a88565..4123180 100644
--- a/log/development.log
+++ b/log/development.log
@@ -178684,3 +178684,2404 @@ Processing by ChatController#notify as JSON
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+Started GET "/" for 127.0.0.1 at 2016-12-25 13:18:49 +0800
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Processing by LoginController#init as HTML
+ [1m[36mUser Load (2.7ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
+ Rendering login/init.html.erb within layouts/application
+ Rendered login/init.html.erb within layouts/application (5.8ms)
+ Rendered layouts/_title.html.erb (0.3ms)
+ Rendered layouts/_refer.html.erb (0.4ms)
+Completed 200 OK in 43ms (Views: 20.8ms | ActiveRecord: 2.9ms)
+
+
+Started POST "/login?method=post" for 127.0.0.1 at 2016-12-25 13:19:10 +0800
+Processing by LoginController#login as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"1p9GIZakcWSR6ud6Wy23T6RYMojDchw8Sin78dJrTCctVKxOuo2BbZ2xk/Kf4CFmzsVyiKQAO7f/K4sYeWaAIA==", "email"=>"zhangyu@163.com", "password"=>"[FILTERED]", "method"=>"post"}
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "zhangyu@163.com"], ["LIMIT", 1]]
+Redirected to http://localhost:3000/main
+Completed 302 Found in 86ms (ActiveRecord: 0.4ms)
+
+
+Started GET "/main" for 127.0.0.1 at 2016-12-25 13:19:10 +0800
+Processing by MainController#show as HTML
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (2.0ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mMicroPost Load (0.2ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ?[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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.2ms)
+ Rendered layouts/_refer.html.erb (0.5ms)
+Completed 200 OK in 50ms (Views: 11.1ms | ActiveRecord: 3.0ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:19:11 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (1.9ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 14ms (Views: 0.4ms | ActiveRecord: 2.2ms)
+
+
+Started GET "/comments?micropost_id=6" for 127.0.0.1 at 2016-12-25 13:19:16 +0800
+Processing by CommentsController#get as JSON
+ Parameters: {"micropost_id"=>"6"}
+ [1m[36mMicroPost Load (0.2ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]]
+ [1m[35m (2.0ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ?[0m [["micro_post_id", 6]]
+ [1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC[0m [["micro_post_id", 6]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Completed 200 OK in 22ms (Views: 1.0ms | ActiveRecord: 2.8ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:19:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:19:26 +0800
+Processing by MicroPostsController#show as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ?[0m [["user_id", 1]]
+ [1m[36mMicroPost Load (0.2ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC[0m [["user_id", 1]]
+ Rendering micro_posts/show.html.erb within layouts/application
+ Rendered layouts/_nav.html.erb (0.8ms)
+ Rendered micro_posts/show.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 19ms (Views: 12.0ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:19:26 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 14ms (Views: 0.4ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:19:36 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/chat" for 127.0.0.1 at 2016-12-25 13:19:42 +0800
+Processing by ChatController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", true]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT DISTINCT "messages"."recieve_user" FROM "messages" WHERE "messages"."send_user" = ?[0m [["send_user", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ Rendering chat/index.html.erb within layouts/application
+ Rendered layouts/_nav.html.erb (0.3ms)
+ Rendered chat/index.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 21ms (Views: 10.2ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:19:42 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:19:52 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:19:52 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:20:02 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:20:02 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:20:12 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:20:12 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:20:15 +0800
+Processing by MainController#show as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mMicroPost Load (0.1ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ?[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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.2ms)
+ Rendered layouts/_title.html.erb (0.4ms)
+ Rendered layouts/_refer.html.erb (0.4ms)
+Completed 200 OK in 18ms (Views: 11.8ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:20:16 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/chat" for 127.0.0.1 at 2016-12-25 13:20:20 +0800
+Processing by ChatController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", true]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT DISTINCT "messages"."recieve_user" FROM "messages" WHERE "messages"."send_user" = ?[0m [["send_user", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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 (3.2ms)
+ Rendered layouts/_title.html.erb (0.4ms)
+ Rendered layouts/_refer.html.erb (0.4ms)
+Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/chat" for 127.0.0.1 at 2016-12-25 13:20:21 +0800
+Processing by ChatController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.6ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", true]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT DISTINCT "messages"."recieve_user" FROM "messages" WHERE "messages"."send_user" = ?[0m [["send_user", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ Rendering chat/index.html.erb within layouts/application
+ Rendered layouts/_nav.html.erb (1.3ms)
+ Rendered chat/index.html.erb within layouts/application (5.7ms)
+ Rendered layouts/_title.html.erb (0.6ms)
+ Rendered layouts/_refer.html.erb (0.4ms)
+Completed 200 OK in 29ms (Views: 19.1ms | ActiveRecord: 1.2ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:20:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:20:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:20:31 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:20:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:20:41 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | 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-25 13:20:43 +0800
+Processing by ChatController#index as JSON
+ Parameters: {"chat_with"=>"管理员"}
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", true]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT DISTINCT "messages"."recieve_user" FROM "messages" WHERE "messages"."send_user" = ?[0m [["send_user", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT ?[0m [["name", "管理员"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."send_user" IN (1, 2) AND "messages"."recieve_user" IN (1, 2) [0m
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."send_user" IN (1, 2) AND "messages"."recieve_user" IN (1, 2) ORDER BY "messages"."create_time" ASC [0m
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:20:43 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:20:51 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:20:51 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:21:01 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:21:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started POST "/newmsg" for 127.0.0.1 at 2016-12-25 13:21:07 +0800
+Processing by ChatController#new as JSON
+ Parameters: {"msg"=>"nihao", "chat_with"=>"管理员", "authenticity_token"=>"sN0ZP483uEy7l0TRWIsPer+6FPm82eTLePqV7kiTeySL6JCeysuhxKk6+/5WtNEyGMndFFxzZqBJbx87nU+unw=="}
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT ?[0m [["name", "管理员"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "messages" ("content", "send_user", "recieve_user", "create_time", "readed", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", "nihao"], ["send_user", 1], ["recieve_user", 2], ["create_time", 2016-12-25 05:21:07 UTC], ["readed", false], ["created_at", 2016-12-25 05:21:07 UTC], ["updated_at", 2016-12-25 05:21:07 UTC]]
+ [1m[35m (1.6ms)[0m [1m[36mcommit transaction[0m
+Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 2.5ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:21:11 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:21:11 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:21:21 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:21:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started POST "/newmsg" for 127.0.0.1 at 2016-12-25 13:21:25 +0800
+Processing by ChatController#new as JSON
+ Parameters: {"msg"=>" ", "chat_with"=>"管理员", "authenticity_token"=>"sN0ZP483uEy7l0TRWIsPer+6FPm82eTLePqV7kiTeySL6JCeysuhxKk6+/5WtNEyGMndFFxzZqBJbx87nU+unw=="}
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT ?[0m [["name", "管理员"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "messages" ("content", "send_user", "recieve_user", "create_time", "readed", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["content", " "], ["send_user", 1], ["recieve_user", 2], ["create_time", 2016-12-25 05:21:25 UTC], ["readed", false], ["created_at", 2016-12-25 05:21:25 UTC], ["updated_at", 2016-12-25 05:21:25 UTC]]
+ [1m[35m (2.3ms)[0m [1m[36mcommit transaction[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 2.9ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:21:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:21:31 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:21:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:21:41 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:21:51 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:21:51 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:22:01 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:22:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:22:11 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:22:11 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:22:21 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:22:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:22:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:22:31 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:22:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:22:41 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:22:51 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:22:51 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:23:01 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:23:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:23:11 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:23:11 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:23:21 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:23:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:23:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:23:31 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:23:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:23:41 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:23:51 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:23:51 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:24:01 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:24:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:24:11 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:24:11 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:24:21 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:24:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:24:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:24:31 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:24:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:24:41 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:24:51 +0800
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:24:51 +0800
+ 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 (1.0ms)
+ 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 (66.5ms)
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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.9ms)
+ 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 (57.8ms)
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:25:02 +0800
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:25:02 +0800
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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/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/_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.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/_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/_request_and_response.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/_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/_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/_trace.text.erb (0.4ms)
+ 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 (96.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.9ms)
+ 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 (78.9ms)
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:25:11 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:25:11 +0800
+
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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
+ 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
+ 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/_source.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/_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/_source.text.erb (0.5ms)
+ 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.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.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
+ 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/_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 (102.4ms)
+ 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 (125.2ms)
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:25:21 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:25:21 +0800
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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/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
+ 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)
+ 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.3ms)
+ 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
+ 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)
+ 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.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/_request_and_response.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/_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.0ms)
+ 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 (116.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 (97.7ms)
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:25:31 +0800
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:25:31 +0800
+ 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.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 (63.9ms)
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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.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 (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 (62.4ms)
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:25:41 +0800
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:25:41 +0800
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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.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/_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.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/_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 (59.6ms)
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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.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 (0.9ms)
+ 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 (58.4ms)
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:25:51 +0800
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:25:51 +0800
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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.9ms)
+ 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.9ms)
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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.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/_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 (1.0ms)
+ 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.6ms)
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:26:01 +0800
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:26:01 +0800
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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.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 (59.3ms)
+
+SyntaxError (/Users/zhangyu/Documents/RubyProjects/se/guoren/app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end):
+
+app/controllers/chat_controller.rb:96: syntax error, unexpected end-of-input, expecting keyword_end
+ 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.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 (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.5ms)
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:26:11 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:26:11 +0800
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 19ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+
+
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 25ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:26:21 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:26:21 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:26:31 +0800
+Processing by ChatController#online as JSON
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:26:31 +0800
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Processing by ChatController#notify as JSON
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:26:41 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:26:41 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:26:51 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:26:51 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:27:01 +0800
+Processing by ChatController#online as JSON
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:27:01 +0800
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Processing by ChatController#notify as JSON
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+
+
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:27:11 +0800
+Processing by ChatController#online as JSON
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:27:11 +0800
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Processing by ChatController#notify as JSON
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:27:21 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:27:21 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:27:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:27:31 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:27:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:27:41 +0800
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:27:51 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:27:51 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:28:01 +0800
+Processing by ChatController#online as JSON
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:28:01 +0800
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Processing by ChatController#notify as JSON
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:28:11 +0800
+Processing by ChatController#online as JSON
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:28:11 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:28:21 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:28:21 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:28:31 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:28:31 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:28:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:28:41 +0800
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Processing by ChatController#notify as JSON
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:28:51 +0800
+Processing by ChatController#notify as JSON
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:28:51 +0800
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Processing by ChatController#online as JSON
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.2ms)
+
+
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:29:01 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:29:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:29:11 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:29:11 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:29:21 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:29:21 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:29:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:29:31 +0800
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Processing by ChatController#notify as JSON
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:29:41 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:29:41 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:29:51 +0800
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:29:51 +0800
+Processing by ChatController#online as JSON
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:30:01 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:30:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:30:11 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.4ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:30:11 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/chat?chat_with=%E7%AE%A1%E7%90%86%E5%91%98" for 127.0.0.1 at 2016-12-25 13:30:18 +0800
+Processing by ChatController#index as JSON
+ Parameters: {"chat_with"=>"管理员"}
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", true]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT DISTINCT "messages"."recieve_user" FROM "messages" WHERE "messages"."send_user" = ?[0m [["send_user", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT ?[0m [["name", "管理员"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."send_user" IN (1, 2) AND "messages"."recieve_user" IN (1, 2) [0m
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."send_user" IN (1, 2) AND "messages"."recieve_user" IN (1, 2) ORDER BY "messages"."create_time" ASC [0m
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
+Completed 200 OK in 18ms (Views: 0.7ms | ActiveRecord: 1.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:30:18 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:30:21 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:30:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:30:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:30:31 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:30:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:30:41 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:30:51 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:30:51 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:31:01 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:31:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:31:11 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:31:11 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:31:21 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:31:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:31:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:31:31 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:31:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:31:41 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:31:51 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:31:51 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:32:01 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:32:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:32:11 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:32:11 +0800
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Processing by ChatController#notify as JSON
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:32:21 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:32:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:32:31 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:32:31 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:32:41 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:32:41 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:32:51 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.2ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:32:51 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/online" for 127.0.0.1 at 2016-12-25 13:33:01 +0800
+Processing by ChatController#online as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMessage Load (0.1ms)[0m [1m[34mSELECT "messages".* FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:33:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:33:01 +0800
+Processing by MainController#show as HTML
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mMicroPost Load (0.1ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ?[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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.5ms)
+ Rendered layouts/_title.html.erb (0.3ms)
+ Rendered layouts/_refer.html.erb (0.4ms)
+Completed 200 OK in 30ms (Views: 10.9ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:33:02 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:33:12 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:33:22 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:33:32 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:33:42 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:33:52 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/logout" for 127.0.0.1 at 2016-12-25 13:33:54 +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-25 13:33:54 +0800
+Processing by LoginController#init as HTML
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
+ Rendering login/init.html.erb within layouts/application
+ Rendered login/init.html.erb within layouts/application (1.6ms)
+ Rendered layouts/_title.html.erb (0.5ms)
+ Rendered layouts/_refer.html.erb (0.7ms)
+Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/chat" for 127.0.0.1 at 2016-12-25 13:34:01 +0800
+Processing by ChatController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
+Redirected to http://localhost:3000/login
+Filter chain halted as :logged_in_user rendered or redirected
+Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
+
+
+Started GET "/login" for 127.0.0.1 at 2016-12-25 13:34:01 +0800
+Processing by LoginController#init as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["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.6ms)
+Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.1ms)
+
+
+Started POST "/login?method=post" for 127.0.0.1 at 2016-12-25 13:36:48 +0800
+Processing by LoginController#login as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Eu9kwM66fEdKXLziQjNS1awcoppzitmHHbOYan2pC1LpJI6v4pOMTkYHyGqG/sT8xoHimhT4/gyoseiD1qTHVQ==", "email"=>"zhangyu@163.com", "password"=>"[FILTERED]", "method"=>"post"}
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "zhangyu@163.com"], ["LIMIT", 1]]
+Redirected to http://localhost:3000/main
+Completed 302 Found in 92ms (ActiveRecord: 1.5ms)
+
+
+Started GET "/main" for 127.0.0.1 at 2016-12-25 13:36:48 +0800
+Processing by MainController#show as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mMicroPost Load (0.1ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ?[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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.4ms)
+ Rendered layouts/_title.html.erb (0.3ms)
+ Rendered layouts/_refer.html.erb (0.4ms)
+Completed 200 OK in 29ms (Views: 9.8ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:36:49 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:36:59 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/comments?micropost_id=6" for 127.0.0.1 at 2016-12-25 13:37:03 +0800
+Processing by CommentsController#get as JSON
+ Parameters: {"micropost_id"=>"6"}
+ [1m[36mMicroPost Load (0.3ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."micro_post_id" = ?[0m [["micro_post_id", 6]]
+ [1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? ORDER BY "comments"."comment_time" DESC[0m [["micro_post_id", 6]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Completed 200 OK in 17ms (Views: 0.6ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/activity?micropost_id=6&join=true" for 127.0.0.1 at 2016-12-25 13:37:05 +0800
+Processing by MainController#activity as JSON
+ Parameters: {"micropost_id"=>"6", "join"=>"true"}
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMicroPost Load (0.0ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "micro_posts" SET "engage_people" = ?, "updated_at" = ? WHERE "micro_posts"."id" = ?[0m [["engage_people", 1], ["updated_at", 2016-12-25 05:37:05 UTC], ["id", 6]]
+ [1m[35m (2.3ms)[0m [1m[36mcommit transaction[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 2.8ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:37:09 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:37:19 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:37:29 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/activity?micropost_id=6&join=false" for 127.0.0.1 at 2016-12-25 13:37:29 +0800
+Processing by MainController#activity as JSON
+ Parameters: {"micropost_id"=>"6", "join"=>"false"}
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mMicroPost Load (0.1ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "micro_posts" SET "engage_people" = ?, "updated_at" = ? WHERE "micro_posts"."id" = ?[0m [["engage_people", 0], ["updated_at", 2016-12-25 05:37:29 UTC], ["id", 6]]
+ [1m[35m (2.3ms)[0m [1m[36mcommit transaction[0m
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.7ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:37:52 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:37:52 +0800
+Processing by MicroPostsController#show as HTML
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ?[0m [["user_id", 1]]
+ [1m[36mMicroPost Load (0.1ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC[0m [["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.5ms)
+ Rendered layouts/_refer.html.erb (0.6ms)
+Completed 200 OK in 20ms (Views: 13.2ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:37:53 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:38:03 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:38:13 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:38:23 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:38:33 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:38:43 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:38:53 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:39:03 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:39:13 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:39:23 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:39:33 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:39:43 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:39:53 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:40:03 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:40:13 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:40:23 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:40:33 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:40:43 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:40:53 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:41:03 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:41:12 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:41:23 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:41:32 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:41:43 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:41:53 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:42:02 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:42:13 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:42:22 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:42:34 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:42:43 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:42:57 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:43:03 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:43:13 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:43:24 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:43:33 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:43:43 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:43:57 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:44:03 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 8ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:44:17 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:44:23 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:44:37 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:44:44 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:44:56 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:45:04 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:45:16 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:45:24 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:45:34 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:45:43 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:46:04 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:46:14 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:46:24 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:46:34 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:46:44 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:46:54 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:47:04 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:47:14 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:47:24 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:47:34 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:47:44 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:47:54 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:48:05 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:48:14 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:48:25 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:48:35 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:48:44 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:48:58 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:49:06 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:49:15 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:49:24 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:49:35 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:49:44 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:49:55 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:50:06 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:50:15 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:50:27 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:50:34 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:50:45 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:50:54 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:54:15 +0800
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Processing by LoginController#init as HTML
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Redirected to http://localhost:3000/main
+Completed 302 Found in 43ms (ActiveRecord: 0.6ms)
+
+
+Started GET "/" for 127.0.0.1 at 2016-12-25 13:54:15 +0800
+Processing by LoginController#init as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+Redirected to http://localhost:3000/main
+Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
+
+
+Started GET "/main" for 127.0.0.1 at 2016-12-25 13:54:15 +0800
+Processing by MainController#show as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mMicroPost Load (0.2ms)[0m [1m[34mSELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ?[0m [["LIMIT", 20], ["OFFSET", 0]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[36mCACHE (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["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 (5.6ms)
+ Rendered layouts/_title.html.erb (0.7ms)
+ Rendered layouts/_refer.html.erb (0.7ms)
+Completed 200 OK in 49ms (Views: 19.3ms | ActiveRecord: 1.2ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:54:16 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:54:26 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:54:36 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:54:46 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:54:56 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/profile" for 127.0.0.1 at 2016-12-25 13:55:01 +0800
+Processing by UsersController#edit as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering users/edit.html.erb within layouts/application
+ Rendered users/edit.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_title.html.erb (0.2ms)
+ Rendered layouts/_refer.html.erb (0.5ms)
+Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/profile" for 127.0.0.1 at 2016-12-25 13:57:51 +0800
+Processing by UsersController#edit as HTML
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering users/edit.html.erb within layouts/application
+ Rendered layouts/_nav.html.erb (0.4ms)
+ Rendered users/edit.html.erb within layouts/application (2.4ms)
+ Rendered layouts/_title.html.erb (0.2ms)
+ Rendered layouts/_refer.html.erb (0.5ms)
+Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/images/logo/guoke.png" for 127.0.0.1 at 2016-12-25 13:57:51 +0800
+
+ActionController::RoutingError (No route matches [GET] "/images/logo/guoke.png"):
+
+actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
+web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app'
+web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call'
+web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch'
+web-console (3.4.0) lib/web_console/middleware.rb:18:in `call'
+actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
+railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
+railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
+activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
+activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
+activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
+railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
+sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
+actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
+rack (2.0.1) lib/rack/method_override.rb:22:in `call'
+rack (2.0.1) lib/rack/runtime.rb:22:in `call'
+activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
+actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
+actionpack (5.0.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
+rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
+railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
+puma (3.6.2) lib/puma/configuration.rb:225:in `call'
+puma (3.6.2) lib/puma/server.rb:578:in `handle_request'
+puma (3.6.2) lib/puma/server.rb:415:in `process_client'
+puma (3.6.2) lib/puma/server.rb:275:in `block in run'
+puma (3.6.2) lib/puma/thread_pool.rb:116:in `block in spawn_thread'
+ 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/routing_error.html.erb within rescues/layout
+ 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.html.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.html.erb (1.6ms)
+ Rendered collection of /Users/zhangyu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb [31 times] (16.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/routes/_table.html.erb (6.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.html.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.html.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/routing_error.html.erb within rescues/layout (130.5ms)
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:57:51 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:58:01 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:58:11 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:58:21 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/profile" for 127.0.0.1 at 2016-12-25 13:58:26 +0800
+Processing by UsersController#edit as HTML
+ [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ Rendering users/edit.html.erb within layouts/application
+ Rendered layouts/_nav.html.erb (0.3ms)
+ Rendered users/edit.html.erb within layouts/application (1.7ms)
+ Rendered layouts/_title.html.erb (0.2ms)
+ Rendered layouts/_refer.html.erb (0.3ms)
+Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:58:26 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["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-25 13:58:36 +0800
+Processing by ChatController#notify as JSON
+ [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ?[0m [["recieve_user", 1], ["readed", false]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+
+
diff --git a/tmp/pids/server.pid b/tmp/pids/server.pid
new file mode 100644
index 0000000..3322837
--- /dev/null
+++ b/tmp/pids/server.pid
@@ -0,0 +1 @@
+2205
\ No newline at end of file