Rails 3 passing a rails array to javascript function which uses a javascript array
Since this still seems like an issue and nobody resolved it. Here goes
var js_array = [<%= raw @object.to_json %>];
Since this still seems like an issue and nobody resolved it. Here goes
var js_array = [<%= raw @object.to_json %>];