website/index.txt in evdispatch-0.2.0 vs website/index.txt in evdispatch-0.2.1
- old
+ new
@@ -29,12 +29,12 @@
<pre syntax="ruby">
class DashController < ApplicationController
def index
- @blogs_id = $dispatcher.request_http("http://10.0.6.45/service/blogs")
- @news_id = $dispatcher.request_http("http://10.0.6.45/service/news")
- @messages_id = $dispatcher.request_http("http://10.0.6.45/service/messages")
+ @blogs_id = $dispatcher.request("http://10.0.6.45/service/blogs")
+ @news_id = $dispatcher.request("http://10.0.6.45/service/news")
+ @messages_id = $dispatcher.request("http://10.0.6.45/service/messages")
end
end
index.html.erb
<% blogs = JSON.parse($dispatcher.response(@blogs_id)[:body]) %>