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 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 render :nothing => true
end end

View file

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

View file

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

View file

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