# Best approach for dynamic table display

**URL:** <https://www.ruby-forum.com/t/best-approach-for-dynamic-table-display/91090>\
**Category:** Rails\
**Created:** [April 4, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/best-approach-for-dynamic-table-display/91090 "2007-04-04T16:37:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@oliver](https://www.ruby-forum.com/u/oliver)\
**Post date:** [April 4, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/best-approach-for-dynamic-table-display/91090/1 "2007-04-04T16:37:19Z")

</div>

hi, folks -

Suppose I have a stream of data coming in periodically, what would be  
best way of displaying a table with dynamic update? Are there any  
“rails way” of doing this?

thanks in advance,

Oliver

---

<div class="post-metadata">

**Author:** ![oliver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@oliver](https://www.ruby-forum.com/u/oliver)\
**Post date:** [April 4, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/best-approach-for-dynamic-table-display/91090/2 "2007-04-04T16:51:21Z")

</div>

On 04 Apr 2007, at 16:35, Oliver wrote:

> hi, folks -
> 
> Suppose I have a stream of data coming in periodically, what would be  
> best way of displaying a table with dynamic update? Are there any  
> “rails way” of doing this?

Put a periodical updater in your view 🙂 Then call a method that  
queries the data, then renders a partial via RJS (make sure your  
periodical updater is placed OUTSIDE this partial).

This page has some info on this: [http://ajax.stealthsettings.com/](http://ajax.stealthsettings.com/)  
tutorial/periodically-make-a-remote-call.html

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![oliver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@oliver](https://www.ruby-forum.com/u/oliver)\
**Post date:** [April 4, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/best-approach-for-dynamic-table-display/91090/3 "2007-04-04T20:37:52Z")

</div>

exactly what I need. thanks Peter.

Oliver
