# Controller-rhtml race

**URL:** <https://www.ruby-forum.com/t/controller-rhtml-race/156737>\
**Category:** Ruby\
**Created:** [January 2, 2009, 8:08am UTC](https://www.ruby-forum.com/t/controller-rhtml-race/156737 "2009-01-02T08:08:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fuentes\_adrian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/74df32/32.png) [@fuentes\_adrian](https://www.ruby-forum.com/u/fuentes_adrian)\
**Post date:** [January 2, 2009, 8:08am UTC](https://www.ruby-forum.com/t/controller-rhtml-race/156737/1 "2009-01-02T08:08:38Z")

</div>

Hi,  
here is my problem:

One user, one (new) modem, one computer. He wants to connect to Internet  
with the modem.

The user that wants to connect with the modem first is redirected to  
ruby application (by modem firmware -\> www-is on VPN), after configuring  
the settings the redirect is removed but the rhtml is not rendered  
because the application (web/ruby) is on VPN and it has no access  
anymore to it.

Now, I am a beginner to ruby but I did some tries and searches and still  
cannot make it that the text and some links that say yey u are  
successfully connected to internet, here you have some docs about it…,  
to be first displayed and then the settings to take effect and redirect  
removed… in the same step, controller method \<-\> rhtml. The settings  
they take effect and some text or none is displayed, it is a race on  
what is first, rendering the rhtml or controllers method with get  
requests to the modem is executed … first.

Thanks guys!
