From 4cd46abaac8eb436f0db5df08a8c5f9f46a6791c Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 18 Aug 2010 11:48:32 -0700 Subject: [PATCH] render nothing at the top --- app/controllers/publics_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/publics_controller.rb b/app/controllers/publics_controller.rb index e7ab1ea1b..0d6df2933 100644 --- a/app/controllers/publics_controller.rb +++ b/app/controllers/publics_controller.rb @@ -22,14 +22,15 @@ class PublicsController < ApplicationController end def receive + render :nothing => true begin @user = Person.first(:id => params[:id]).owner rescue NoMethodError => e Rails.logger.error("Received post #{params[:xml]} for nonexistent person #{params[:id}") + return end Rails.logger.debug "PublicsController has received: #{params[:xml]}" @user.receive params[:xml] if params[:xml] - render :nothing => true end end