PDA

View Full Version : Rails/YUI-Grid Question



rmarmer1
30 Oct 2006, 9:02 PM
Hello. I'm looking at using the YUI grid component in a rails app.

Typically I'd use an html table object, do a db call along the lines of

@aCollection = AModel.find(:all)

& use a partial to loop thru the collection & populate the rows...

How would you populate the YUI grid in rails?

Would the RJS template system &/or the rails "to_xml" method be part of a reasonable approach here & if so, what would that look like?


Thanks!

evant
25 Aug 2007, 6:31 AM
Nevermind