clarify why creating comments is not allowed
This commit is contained in:
@@ -24,7 +24,7 @@ class CommentsController < ApplicationController
|
|||||||
redirect_to Blogpost.find(params[:blogpost_id])
|
redirect_to Blogpost.find(params[:blogpost_id])
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
flash[:alert] = "You are not allowed to create comments."
|
flash[:alert] = "Please confirm your email address first!"
|
||||||
redirect_to Blogpost.find(params[:blogpost_id])
|
redirect_to Blogpost.find(params[:blogpost_id])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user