From 32deebc359a56519b295682f544b635971b7c384 Mon Sep 17 00:00:00 2001 From: Andrew Backes Date: Thu, 29 Oct 2015 10:50:46 -0500 Subject: [PATCH 1/7] Updating readme with project descriptor --- README.rdoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rdoc b/README.rdoc index f64de18..c874f95 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,5 +1,7 @@ == README +===Process Project (MSOE) + Build Status (Travis CI) {Build Status}[https://travis-ci.org/lopezn/ProcessProject] From a2fb92c6e8a91c084641b64d559e90ee87f8e52f Mon Sep 17 00:00:00 2001 From: lopezn Date: Thu, 29 Oct 2015 10:58:23 -0500 Subject: [PATCH 2/7] Update README.rdoc --- README.rdoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rdoc b/README.rdoc index c874f95..438706f 100644 --- a/README.rdoc +++ b/README.rdoc @@ -12,3 +12,5 @@ Test Coverage (Code Climate) {}[https://codeclimate.com/github/lopezn/ProcessProject] This projects adds functionality to the project created by RailsGuides[http://guides.rubyonrails.org/getting_started.html] + +This project was created for a class at msoe where we learned process tools and practices. From 7e22339483f0765fc8392ca73560c67ca8e4c7f2 Mon Sep 17 00:00:00 2001 From: lopezn Date: Thu, 29 Oct 2015 11:02:19 -0500 Subject: [PATCH 3/7] Update articles_controller.rb Added a comment --- app/controllers/articles_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index 764c598..13bfd36 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -3,6 +3,7 @@ class ArticlesController < ApplicationController def new + # The new article to be created @article = Article.new end From b9aec2b276f334771fe7693ce807cb3b63eb812a Mon Sep 17 00:00:00 2001 From: lopezn Date: Thu, 29 Oct 2015 11:08:08 -0500 Subject: [PATCH 4/7] Update comments_controller.rb --- app/controllers/comments_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 5586426..f0957ee 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -1,7 +1,12 @@ class CommentsController < ApplicationController def create + # The article to add a comment to @article = Article.find(params[:article_id]) + + # The comment to create @comment = @article.comments.create(comment_params) + + # Redirect back to article:show redirect_to article_path(@article) end From 0efd227429f2fd67fc8672866bbf0121e494f847 Mon Sep 17 00:00:00 2001 From: lopezn Date: Thu, 29 Oct 2015 11:10:07 -0500 Subject: [PATCH 5/7] Update article.rb --- app/models/article.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/article.rb b/app/models/article.rb index 2ffc62d..fa8555c 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -1,4 +1,4 @@ class Article < ActiveRecord::Base has_many :comments, dependent: :destroy - validates :title, presence: true, length: { minimum: 5 } + validates :title, presence: true, length: { minimum: 5 } # Title must be at least 5 characters long end From cc392a66bc7b18ddc018c1361423dff37dfaa76f Mon Sep 17 00:00:00 2001 From: lopezn Date: Thu, 29 Oct 2015 11:11:10 -0500 Subject: [PATCH 6/7] Update Gemfile --- Gemfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index bda7f8f..f0d9c5d 100644 --- a/Gemfile +++ b/Gemfile @@ -44,5 +44,5 @@ gem 'rake' # Code coverage by CodeClimate gem "codeclimate-test-reporter", group: :test, require: nil -# Pdf -gem 'prawn', '~> 1.3.0' \ No newline at end of file +# Pdf https://github.com/prawnpdf/prawn +gem 'prawn', '~> 1.3.0' From b595fd5cde6ff29ca901ce7ecf6e295f7d5e1f62 Mon Sep 17 00:00:00 2001 From: lopezn Date: Thu, 29 Oct 2015 11:11:49 -0500 Subject: [PATCH 7/7] Update README.rdoc --- README.rdoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rdoc b/README.rdoc index 438706f..a7106ba 100644 --- a/README.rdoc +++ b/README.rdoc @@ -14,3 +14,5 @@ Test Coverage (Code Climate) This projects adds functionality to the project created by RailsGuides[http://guides.rubyonrails.org/getting_started.html] This project was created for a class at msoe where we learned process tools and practices. + +Pdf generation from the prawn gem https://github.com/prawnpdf/prawn