Send messages directly instead of using controller filter. Litte improvements to the messages lists.

This commit is contained in:
Benjamin Meichsner 2009-03-09 13:02:43 +01:00
parent de4f1d573b
commit dd940fb414
6 changed files with 20 additions and 10 deletions

View file

@ -14,6 +14,8 @@ class MessagesController < ApplicationController
def create
@message = @current_user.send_messages.new(params[:message])
if @message.save
#FIXME: Send Mails wit ID instead of using message.state ...
call_rake :send_emails
flash[:notice] = "Nachricht ist gespeichert und wird versendet."
redirect_to messages_path
else