<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>whiteadi's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/331347/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user whiteadi.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 15:01:38 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>rhtml - controller race</title>
      <link>http://www.programmersheaven.com/mb/ruby/383776/383776/ReadMessage.aspx#383776</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/ruby/383776/383776/ReadMessage.aspx#383776"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/ruby/Board.aspx"&gt;Ruby&lt;/a&gt; forum.&lt;/p&gt;Hi,&lt;br /&gt;
here is my problem:&lt;br /&gt;
&lt;br /&gt;
One user, one (new) modem, one computer. He wants to connect to Internet&lt;br /&gt;
with the modem.&lt;br /&gt;
&lt;br /&gt;
The user that wants to connect with the modem first is redirected to&lt;br /&gt;
ruby application (by modem firmware -&amp;gt; www-is on VPN), after configuring&lt;br /&gt;
the settings the redirect is removed but the rhtml is not rendered&lt;br /&gt;
because the application (web/ruby) is on VPN and it has no access&lt;br /&gt;
anymore to it.&lt;br /&gt;
&lt;br /&gt;
Now, I am a beginner to ruby but I did some tries and searches and still&lt;br /&gt;
cannot make it that the text and some links that say yey u are&lt;br /&gt;
successfully connected to internet, here you have some docs about it...,&lt;br /&gt;
to be first displayed and then the settings to take effect and redirect&lt;br /&gt;
removed... in the same step, controller method &amp;lt;-&amp;gt; rhtml. The settings&lt;br /&gt;
they take effect and some text or none is displayed, it is a race on&lt;br /&gt;
what is first, rendering the rhtml or controllers method with get&lt;br /&gt;
requests to the modem is executed ... first.&lt;br /&gt;
&lt;br /&gt;
Thanks guys!&lt;br /&gt;
&lt;br /&gt;
summary:&lt;br /&gt;
what I am still looking for is a way of first to display the rhtml and after fire the get requests.&lt;br /&gt;
&lt;br /&gt;
One request is like this:&lt;br /&gt;
&lt;br /&gt;
    url = URI.parse("http://"+ session[:ip_addr] + "/blabla.wl?var1=1&amp;amp;...")&lt;br /&gt;
    req = Net::HTTP::Get.new(url.path+"?"+url.query)&lt;br /&gt;
    req.basic_auth "xxx","xxx"&lt;br /&gt;
    res = Net::HTTP.start(url.host, url.port) {|http| http.request(req)}&lt;br /&gt;
&lt;br /&gt;
and now is in controller, but I did try it in between &amp;lt;% %&amp;gt; in template rhtml but didn't displayed the template also.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ruby/383776/383776/ReadMessage.aspx#383776</guid>
      <pubDate>Fri, 02 Jan 2009 00:32:17 -0700</pubDate>
    </item>
  </channel>
</rss>