I am trying to pass a rails array to a javascript function. The function will then use the array values in javascript so I need to keep it an array.
Here is how I am
Since this still seems like an issue and nobody resolved it. Here goes
var js_array = [<%= raw @object.to_json %>];