Asynchronous 获取异步http请求以在rails 3beta4/ruby 1.9.2-rc2/thin/eventmachine上工作

Asynchronous 获取异步http请求以在rails 3beta4/ruby 1.9.2-rc2/thin/eventmachine上工作,asynchronous,thin,eventmachine,ruby-on-rails-3,Asynchronous,Thin,Eventmachine,Ruby On Rails 3,我一直在尝试让基本的异步HTTP调用在我的应用程序中工作 我曾尝试在我的应用程序中使用Rails 3 async stack demo:中的一些代码,但我得到了“无法从根光纤中屈服”,我不知道从这里可以走到哪里。以下是我的追踪记录: (eval):10:in `yield' (eval):10:in `get' app/controllers/home_controller.rb:62:in `index' /Users/ct/.rvm/gems/ruby-1.9.2-rc2@og/gems/a

我一直在尝试让基本的异步HTTP调用在我的应用程序中工作

我曾尝试在我的应用程序中使用Rails 3 async stack demo:中的一些代码,但我得到了“无法从根光纤中屈服”,我不知道从这里可以走到哪里。以下是我的追踪记录:

(eval):10:in `yield'
(eval):10:in `get'
app/controllers/home_controller.rb:62:in `index'
/Users/ct/.rvm/gems/ruby-1.9.2-rc2@og/gems/actionpack-3.0.0.beta4/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/Users/ct/.rvm/gems/ruby-1.9.2-rc2@og/gems/actionpack-3.0.0.beta4/lib/abstract_controller/base.rb:145:in `process_action'
我的索引控制器方法很简单:

def index
  http = EM::HttpRequest.new("http://www.google.com/").get
  render :text => http.response
end

我得到了所有正确的宝石,我得到了1.9.2-rc2,rails 3 beta 4,我正在瘦下去。我还使用相同的rvm和gemset使async rails应用程序本身运行良好。eventmachine反应器肯定在我的应用程序中运行。我想要任何关于如何让它正常工作的提示

我有同样的问题,如果你解决了,我真的很想知道如何:)!