fix flash messages

This commit is contained in:
Lee Lawlor 2014-09-16 15:40:45 -04:00
parent a21733db9d
commit 5f44500dfb

View File

@ -18,7 +18,7 @@ class CommentsController < ApplicationController
if @comment.save if @comment.save
flash[:notice] = "Thanks for adding a comment!" flash[:notice] = "Thanks for adding a comment!"
else else
flash[:error] = "Comment can't be blank!" flash[:alert] = "Comment can't be blank!"
end end
redirect_to :back redirect_to :back
end end