thread reply emails! also a few mail bugfixes

This commit is contained in:
jomo
2014-04-30 02:35:54 +02:00
parent c109f8d23a
commit 85a2938443
7 changed files with 71 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ class ThreadrepliesController < ApplicationController
@reply.user_author = current_user
@reply.forumthread = thread
if @reply.save
@reply.send_new_reply_mail
redirect_to forumthread_path(@reply.thread) + "#reply-#{@reply.id}", notice: 'Reply created!'
else
flash[:alert] = "Could not create reply."