putting debug in for master so I can check deployed servers out
This commit is contained in:
parent
0818450c6e
commit
2bbfcb0bb1
4 changed files with 5 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ module ApplicationHelper
|
|||
when "User"
|
||||
user_path(person)
|
||||
else
|
||||
"#"
|
||||
link_to "unknown person", "#"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -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?
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue