From: Ruby Student Date: 2013-06-14T06:41:02+09:00 Subject: Can I use Sinatra to render dynamic pages? --bcaec502d1ec87589b04df0ffc26 Content-Type: text/plain; charset=ISO-8859-1 Hell Team, I wrote a very simple dashboard using *shoes* which basically displays statistics, every second, of certain type of messages arriving at a queue under *MQ*. But in order for anyone to use it they have to install *Ruby*, *shoes *and its requirements. So I started experimenting with *Sinatra *to re-write my simple application so anyone could point their *browser* and get the dashboard displayed. I went over the first *basic Sinatra* tutorial but everything appears to be static. Is there any example out there that shows *Sinatra* dynamically refreshing the page continuously with new information, in my case message queues information? In other words, once the user successfully get the page displayed, from that point on I want the content to be refreshed dynamically with the new information without user intervention. Thank you -- Ruby Student --bcaec502d1ec87589b04df0ffc26 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hell Team,

I wrote a very simple da= shboard using shoes which basically displays statistics, every secon= d, of certain type of messages arriving at a queue under MQ. But in order for anyone to use it they have to insta= ll Ruby, shoes and its requirem= ents. So I started experimenting with Sinatra to re-write my simple = application so anyone could point their browser and get the dashboar= d displayed. I went over the first basic Sinatra tutorial but everyt= hing appears to be static. Is there any example out there that shows Sin= atra dynamically refreshing the page continuously with new information,= in my case message queues information?

In other words, once the user successfully get the page disp= layed, from that point on I want the content to be refreshed dynamically wi= th the new information without user intervention.

Thank y= ou

--
Ruby Student
--bcaec502d1ec87589b04df0ffc26--