From 5f44500dfb825457a835fba65ca278b5487466e7 Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Tue, 16 Sep 2014 15:40:45 -0400 Subject: [PATCH] fix flash messages --- app/controllers/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 156b2c3..eff507c 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -18,7 +18,7 @@ class CommentsController < ApplicationController if @comment.save flash[:notice] = "Thanks for adding a comment!" else - flash[:error] = "Comment can't be blank!" + flash[:alert] = "Comment can't be blank!" end redirect_to :back end