Matthew
If you are going to use forums like this, you need to ask more
digestible questions.
Firstly we are not clear where JS comes in. Most likely it is in a web
browser session, but are you creating the JS data when you create the
web page content or are you calling Ruby later with AJAX?
Your question is too big. It currently covers reading a CSV file,
creating JS and parcelling up data to send between the two languages.
Are you expecting people to tell you how to do the whole thing? People
haven't got all day to write your code.
For such a big question why do you introduce the rather specific concept
of an array? Have you already written the JS? Are you using something
that already exists?
You'll get to your answer more quickly if you deal with small specific
chunks. Also in this case, set the scene with an overview of your
application.
ยทยทยท
--
Posted via http://www.ruby-forum.com/.