# YUI widgets, and JSON datasource generated by rails

**URL:** <https://www.ruby-forum.com/t/yui-widgets-and-json-datasource-generated-by-rails/156591>\
**Category:** Rails\
**Created:** [December 30, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/yui-widgets-and-json-datasource-generated-by-rails/156591 "2008-12-30T15:58:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 30, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/yui-widgets-and-json-datasource-generated-by-rails/156591/1 "2008-12-30T15:58:02Z")

</div>

Hi there,

I am working on a module which will generate YUI widgets.

For now, I am using the YUI DataTable, which takes YUI Datasource as  
source to  
populate an html table. I wonder if someone has tried to populate a  
YUI Datasource  
with JSON generated by a rails controller? (So to dynamicly updating a  
table, with a model  
represented in JSON format).

Thanks, Christophe

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 30, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/yui-widgets-and-json-datasource-generated-by-rails/156591/2 "2008-12-30T18:14:20Z")

</div>

> I wonder if someone has tried to populate a  
> YUI Datasource  
> with JSON generated by a rails controller? (So to dynamicly updating a  
> table, with a model  
> represented in JSON format).
> 
> Thanks, Christophe

Perhaps YUI4Rails does this?

> **[GitHub - mghaught/yui4rails: a Ruby on Rails plugin for easier integration of...](https://github.com/mghaught/yui4rails/tree/master#README)**
>
> master

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 31, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/yui-widgets-and-json-datasource-generated-by-rails/156591/3 "2008-12-31T16:01:43Z")

</div>

Hi, it’s using JSON inside the library, but I doesn’t seem to be able  
to query a server and get JSON back, which then populates the  
widgets.
