putting debug in for master so I can check deployed servers out

This commit is contained in:
Maxwell Salzberg 2010-06-26 14:16:19 -07:00
parent 0818450c6e
commit 2bbfcb0bb1
4 changed files with 5 additions and 7 deletions

View file

@ -9,7 +9,9 @@ class DashboardController < ApplicationController
def receive
store_posts_from_xml CGI::unescape(params[:xml])
xml = CGI::unescape(params[:xml])
puts xml
store_posts_from_xml xml
render :nothing => true
end

View file

@ -67,7 +67,7 @@ module ApplicationHelper
when "User"
user_path(person)
else
"#"
link_to "unknown person", "#"
end
end

View file

@ -25,10 +25,6 @@ class Post
Post.sort(:created_at.desc).all
end
def each
yield self
end
def self.newest(person = nil)
return self.last if person.nil?

View file

@ -25,7 +25,7 @@ class MessageHandler
case query.type
when :post
http = EventMachine::HttpRequest.new(query.destination).post :timeout => TIMEOUT, :body =>{:xml => query.body}
http.callback { process}
http.callback {puts query.inspect; process}
when :get
http = EventMachine::HttpRequest.new(query.destination).get :timeout => TIMEOUT
http.callback {send_to_seed(query, http.response); process}