comments: add standalone new comment form.

Add standalone /comments/new page to allow commenting if javascript is
disabled.
This commit is contained in:
evazion
2018-09-29 14:24:17 -05:00
parent 9ac59aeadd
commit dfb7cf6994
3 changed files with 15 additions and 2 deletions

View File

@@ -106,6 +106,6 @@ private
permitted_params += %i[is_deleted] if context == :update
permitted_params += %i[is_sticky] if CurrentUser.is_moderator?
params.require(:comment).permit(permitted_params)
params.fetch(:comment, {}).permit(permitted_params)
end
end