fix flash messages
This commit is contained in:
parent
a21733db9d
commit
5f44500dfb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user