I think this should be simple: I need to initialize and then ajax
update a Javascript array; taking the data from a rails model. I wrote
an iterator that created a string--which looked just like my working
test array, but then that didn't seem to work out for writing it to
the page.
Hi Ed,
Definitely give JSON a look if you haven't already. That's pretty much
what it's made for.
In the action that your JS is calling, use this render option: