if @message.save
flash[:notice] = t 'message.new.message_sent'
- Notifier::deliver_message_notification(@message)
+ Notifier.message_notification(@message).deliver
redirect_to :controller => 'message', :action => 'inbox', :display_name => @user.display_name
end
end
render :action => 'new'
else
flash[:notice] = t 'message.reply.wrong_user', :user => @user.display_name
- redirect_to :controller => "user", :action => "login", :referer => request.request_uri
+ redirect_to :controller => "user", :action => "login", :referer => request.fullpath
end
rescue ActiveRecord::RecordNotFound
@title = t'message.no_such_message.title'
@message.save
else
flash[:notice] = t 'message.read.wrong_user', :user => @user.display_name
- redirect_to :controller => "user", :action => "login", :referer => request.request_uri
+ redirect_to :controller => "user", :action => "login", :referer => request.fullpath
end
rescue ActiveRecord::RecordNotFound
@title = t'message.no_such_message.title'