From 8fa572e1a2dbb45858442c01c0880bcb66f8bab5 Mon Sep 17 00:00:00 2001 From: Boris <30473641+BorisJov@users.noreply.github.com> Date: Sun, 6 Aug 2017 16:29:33 +0200 Subject: [PATCH] Commit 2. -Finished I2 of tutorial --- .idea/workspace.xml | 189 ++++++++++++++----- app/assets/javascripts/comments.coffee | 3 + app/assets/stylesheets/comments.scss | 3 + app/controllers/articles_controller.rb | 4 + app/controllers/comments_controller.rb | 15 ++ app/helpers/comments_helper.rb | 2 + app/models/article.rb | 1 + app/models/comment.rb | 3 + app/views/articles/_comment.html.erb | 5 + app/views/articles/show.html.erb | 6 + app/views/comments/_form.html.erb | 14 ++ config/routes.rb | 4 +- db/migrate/20170806133537_create_comments.rb | 11 ++ db/schema.rb | 11 +- test/controllers/comments_controller_test.rb | 7 + test/fixtures/comments.yml | 11 ++ test/models/comment_test.rb | 7 + 17 files changed, 245 insertions(+), 51 deletions(-) create mode 100644 app/assets/javascripts/comments.coffee create mode 100644 app/assets/stylesheets/comments.scss create mode 100644 app/controllers/comments_controller.rb create mode 100644 app/helpers/comments_helper.rb create mode 100644 app/models/comment.rb create mode 100644 app/views/articles/_comment.html.erb create mode 100644 app/views/comments/_form.html.erb create mode 100644 db/migrate/20170806133537_create_comments.rb create mode 100644 test/controllers/comments_controller_test.rb create mode 100644 test/fixtures/comments.yml create mode 100644 test/models/comment_test.rb diff --git a/.idea/workspace.xml b/.idea/workspace.xml index fbd1d0b..a9e7dcd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,10 +4,10 @@ - + - + @@ -26,41 +26,41 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -77,13 +77,17 @@ @@ -117,7 +121,6 @@ - @@ -157,6 +160,13 @@ + + + + + + + @@ -169,10 +179,22 @@ + + + + + + + + + + +