We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
url: /posts/1/comments error: 500 logs: 2017-08-27T14:58:36.508213+00:00 app[web.1]: I, [2017-08-27T14:58:36.508122 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Started POST "/posts/1/comments" for 37.229.149.101 at 2017-08-27 14:58:36 +0000 2017-08-27T14:58:36.510698+00:00 app[web.1]: I, [2017-08-27T14:58:36.510594 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Processing by Publications::CommentsController#create as HTML 2017-08-27T14:58:36.510841+00:00 app[web.1]: I, [2017-08-27T14:58:36.510784 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Parameters: {"utf8"=>"✓", "authenticity_token"=>"nCmJ92/nudW1/keE1O67lX3hBUcY7tb97FsL6t+bUpf3Nc579aiUIqmKZspJJLz7dRWND4gJNGCZxzN/1D0Wtw==", "comment"=>{"content"=>"2"}, "commit"=>"Отправить", "post_id"=>"1"} 2017-08-27T14:58:36.518153+00:00 app[web.1]: D, [2017-08-27T14:58:36.518039 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]] 2017-08-27T14:58:36.527477+00:00 app[web.1]: D, [2017-08-27T14:58:36.527361 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Visit Load (3.4ms) SELECT "visits".* FROM "visits" WHERE "visits"."visit_token" = $1 ORDER BY "visits"."id" ASC LIMIT $2 [["visit_token", "a0e30a91-6425-4ae5-aef9-3acab003d489"], ["LIMIT", 1]] 2017-08-27T14:58:36.531397+00:00 app[web.1]: D, [2017-08-27T14:58:36.531282 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (2.8ms) BEGIN 2017-08-27T14:58:36.535518+00:00 app[web.1]: D, [2017-08-27T14:58:36.535412 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] SQL (2.0ms) INSERT INTO "ahoy_events" ("user_id", "name", "properties", "time") VALUES ($1, $2, $3, $4) RETURNING "id" [["user_id", 1], ["name", "publications/comments > create"], ["properties", "{\"utf8\":\"✓\",\"authenticity_token\":\"nCmJ92/nudW1/keE1O67lX3hBUcY7tb97FsL6t+bUpf3Nc579aiUIqmKZspJJLz7dRWND4gJNGCZxzN/1D0Wtw==\",\"comment\":{\"content\":\"2\"},\"commit\":\"Отправить\",\"controller\":\"publications/comments\",\"action\":\"create\",\"post_id\":\"1\"}"], ["time", 2017-08-27 14:58:36 UTC]] 2017-08-27T14:58:36.538293+00:00 app[web.1]: D, [2017-08-27T14:58:36.538193 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (2.1ms) COMMIT 2017-08-27T14:58:36.554715+00:00 app[web.1]: D, [2017-08-27T14:58:36.554592 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (3.3ms) BEGIN 2017-08-27T14:58:36.547633+00:00 app[web.1]: D, [2017-08-27T14:58:36.547511 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Post Load (6.5ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] 2017-08-27T14:58:36.559756+00:00 app[web.1]: D, [2017-08-27T14:58:36.559634 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (0.9ms) ROLLBACK 2017-08-27T14:58:36.567861+00:00 app[web.1]: F, [2017-08-27T14:58:36.567781 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] 2017-08-27T14:58:36.566101+00:00 app[web.1]: I, [2017-08-27T14:58:36.565996 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Completed 500 Internal Server Error in 55ms (ActiveRecord: 22.4ms) 2017-08-27T14:58:36.567933+00:00 app[web.1]: F, [2017-08-27T14:58:36.567869 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] ActionView::MissingTemplate (Missing template publications/comments/new, publications/new, application/new with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder, :haml]}. Searched in: 2017-08-27T14:58:36.567935+00:00 app[web.1]: * "/app/app/views" 2017-08-27T14:58:36.567936+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/devise-4.2.0/app/views" 2017-08-27T14:58:36.567936+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/semantic-ui-sass-2.2.11.0/app/views" 2017-08-27T14:58:36.567937+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/ckeditor-4.1.6/app/views" 2017-08-27T14:58:36.567996+00:00 app[web.1]: F, [2017-08-27T14:58:36.567936 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] 2017-08-27T14:58:36.567938+00:00 app[web.1]: ): 2017-08-27T14:58:36.568063+00:00 app[web.1]: F, [2017-08-27T14:58:36.568009 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] app/controllers/publications/comments_controller.rb:18:in create'`
2017-08-27T14:58:36.508213+00:00 app[web.1]: I, [2017-08-27T14:58:36.508122 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Started POST "/posts/1/comments" for 37.229.149.101 at 2017-08-27 14:58:36 +0000 2017-08-27T14:58:36.510698+00:00 app[web.1]: I, [2017-08-27T14:58:36.510594 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Processing by Publications::CommentsController#create as HTML 2017-08-27T14:58:36.510841+00:00 app[web.1]: I, [2017-08-27T14:58:36.510784 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Parameters: {"utf8"=>"✓", "authenticity_token"=>"nCmJ92/nudW1/keE1O67lX3hBUcY7tb97FsL6t+bUpf3Nc579aiUIqmKZspJJLz7dRWND4gJNGCZxzN/1D0Wtw==", "comment"=>{"content"=>"2"}, "commit"=>"Отправить", "post_id"=>"1"} 2017-08-27T14:58:36.518153+00:00 app[web.1]: D, [2017-08-27T14:58:36.518039 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]] 2017-08-27T14:58:36.527477+00:00 app[web.1]: D, [2017-08-27T14:58:36.527361 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Visit Load (3.4ms) SELECT "visits".* FROM "visits" WHERE "visits"."visit_token" = $1 ORDER BY "visits"."id" ASC LIMIT $2 [["visit_token", "a0e30a91-6425-4ae5-aef9-3acab003d489"], ["LIMIT", 1]] 2017-08-27T14:58:36.531397+00:00 app[web.1]: D, [2017-08-27T14:58:36.531282 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (2.8ms) BEGIN 2017-08-27T14:58:36.535518+00:00 app[web.1]: D, [2017-08-27T14:58:36.535412 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] SQL (2.0ms) INSERT INTO "ahoy_events" ("user_id", "name", "properties", "time") VALUES ($1, $2, $3, $4) RETURNING "id" [["user_id", 1], ["name", "publications/comments > create"], ["properties", "{\"utf8\":\"✓\",\"authenticity_token\":\"nCmJ92/nudW1/keE1O67lX3hBUcY7tb97FsL6t+bUpf3Nc579aiUIqmKZspJJLz7dRWND4gJNGCZxzN/1D0Wtw==\",\"comment\":{\"content\":\"2\"},\"commit\":\"Отправить\",\"controller\":\"publications/comments\",\"action\":\"create\",\"post_id\":\"1\"}"], ["time", 2017-08-27 14:58:36 UTC]] 2017-08-27T14:58:36.538293+00:00 app[web.1]: D, [2017-08-27T14:58:36.538193 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (2.1ms) COMMIT 2017-08-27T14:58:36.554715+00:00 app[web.1]: D, [2017-08-27T14:58:36.554592 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (3.3ms) BEGIN 2017-08-27T14:58:36.547633+00:00 app[web.1]: D, [2017-08-27T14:58:36.547511 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Post Load (6.5ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] 2017-08-27T14:58:36.559756+00:00 app[web.1]: D, [2017-08-27T14:58:36.559634 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (0.9ms) ROLLBACK 2017-08-27T14:58:36.567861+00:00 app[web.1]: F, [2017-08-27T14:58:36.567781 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] 2017-08-27T14:58:36.566101+00:00 app[web.1]: I, [2017-08-27T14:58:36.565996 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Completed 500 Internal Server Error in 55ms (ActiveRecord: 22.4ms) 2017-08-27T14:58:36.567933+00:00 app[web.1]: F, [2017-08-27T14:58:36.567869 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] ActionView::MissingTemplate (Missing template publications/comments/new, publications/new, application/new with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder, :haml]}. Searched in: 2017-08-27T14:58:36.567935+00:00 app[web.1]: * "/app/app/views" 2017-08-27T14:58:36.567936+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/devise-4.2.0/app/views" 2017-08-27T14:58:36.567936+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/semantic-ui-sass-2.2.11.0/app/views" 2017-08-27T14:58:36.567937+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/ckeditor-4.1.6/app/views" 2017-08-27T14:58:36.567996+00:00 app[web.1]: F, [2017-08-27T14:58:36.567936 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] 2017-08-27T14:58:36.567938+00:00 app[web.1]: ): 2017-08-27T14:58:36.568063+00:00 app[web.1]: F, [2017-08-27T14:58:36.568009 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] app/controllers/publications/comments_controller.rb:18:in
case:
expected: submit form, send comment and redirect to commented post
The text was updated successfully, but these errors were encountered:
notice: Error happpens when comment content is not valid (has length < 2 symbols) expected: error message if comment content isn't valid
Sorry, something went wrong.
vrtsev
No branches or pull requests
url: /posts/1/comments
error: 500
logs:
2017-08-27T14:58:36.508213+00:00 app[web.1]: I, [2017-08-27T14:58:36.508122 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Started POST "/posts/1/comments" for 37.229.149.101 at 2017-08-27 14:58:36 +0000 2017-08-27T14:58:36.510698+00:00 app[web.1]: I, [2017-08-27T14:58:36.510594 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Processing by Publications::CommentsController#create as HTML 2017-08-27T14:58:36.510841+00:00 app[web.1]: I, [2017-08-27T14:58:36.510784 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Parameters: {"utf8"=>"✓", "authenticity_token"=>"nCmJ92/nudW1/keE1O67lX3hBUcY7tb97FsL6t+bUpf3Nc579aiUIqmKZspJJLz7dRWND4gJNGCZxzN/1D0Wtw==", "comment"=>{"content"=>"2"}, "commit"=>"Отправить", "post_id"=>"1"} 2017-08-27T14:58:36.518153+00:00 app[web.1]: D, [2017-08-27T14:58:36.518039 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]] 2017-08-27T14:58:36.527477+00:00 app[web.1]: D, [2017-08-27T14:58:36.527361 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Visit Load (3.4ms) SELECT "visits".* FROM "visits" WHERE "visits"."visit_token" = $1 ORDER BY "visits"."id" ASC LIMIT $2 [["visit_token", "a0e30a91-6425-4ae5-aef9-3acab003d489"], ["LIMIT", 1]] 2017-08-27T14:58:36.531397+00:00 app[web.1]: D, [2017-08-27T14:58:36.531282 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (2.8ms) BEGIN 2017-08-27T14:58:36.535518+00:00 app[web.1]: D, [2017-08-27T14:58:36.535412 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] SQL (2.0ms) INSERT INTO "ahoy_events" ("user_id", "name", "properties", "time") VALUES ($1, $2, $3, $4) RETURNING "id" [["user_id", 1], ["name", "publications/comments > create"], ["properties", "{\"utf8\":\"✓\",\"authenticity_token\":\"nCmJ92/nudW1/keE1O67lX3hBUcY7tb97FsL6t+bUpf3Nc579aiUIqmKZspJJLz7dRWND4gJNGCZxzN/1D0Wtw==\",\"comment\":{\"content\":\"2\"},\"commit\":\"Отправить\",\"controller\":\"publications/comments\",\"action\":\"create\",\"post_id\":\"1\"}"], ["time", 2017-08-27 14:58:36 UTC]] 2017-08-27T14:58:36.538293+00:00 app[web.1]: D, [2017-08-27T14:58:36.538193 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (2.1ms) COMMIT 2017-08-27T14:58:36.554715+00:00 app[web.1]: D, [2017-08-27T14:58:36.554592 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (3.3ms) BEGIN 2017-08-27T14:58:36.547633+00:00 app[web.1]: D, [2017-08-27T14:58:36.547511 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Post Load (6.5ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] 2017-08-27T14:58:36.559756+00:00 app[web.1]: D, [2017-08-27T14:58:36.559634 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (0.9ms) ROLLBACK 2017-08-27T14:58:36.567861+00:00 app[web.1]: F, [2017-08-27T14:58:36.567781 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] 2017-08-27T14:58:36.566101+00:00 app[web.1]: I, [2017-08-27T14:58:36.565996 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Completed 500 Internal Server Error in 55ms (ActiveRecord: 22.4ms) 2017-08-27T14:58:36.567933+00:00 app[web.1]: F, [2017-08-27T14:58:36.567869 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] ActionView::MissingTemplate (Missing template publications/comments/new, publications/new, application/new with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder, :haml]}. Searched in: 2017-08-27T14:58:36.567935+00:00 app[web.1]: * "/app/app/views" 2017-08-27T14:58:36.567936+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/devise-4.2.0/app/views" 2017-08-27T14:58:36.567936+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/semantic-ui-sass-2.2.11.0/app/views" 2017-08-27T14:58:36.567937+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/ckeditor-4.1.6/app/views" 2017-08-27T14:58:36.567996+00:00 app[web.1]: F, [2017-08-27T14:58:36.567936 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] 2017-08-27T14:58:36.567938+00:00 app[web.1]: ): 2017-08-27T14:58:36.568063+00:00 app[web.1]: F, [2017-08-27T14:58:36.568009 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] app/controllers/publications/comments_controller.rb:18:in
create'`case:
expected: submit form, send comment and redirect to commented post
The text was updated successfully, but these errors were encountered: