json, rails, parse error in javascript

前端 未结 3 727
不思量自难忘°
不思量自难忘° 2021-01-17 02:28

I need to get a ruby array in to a javascript array and I\'m getting a parse error.

var characters = <%= @poop.to_json %>;

That is how

3条回答
提交回复
热议问题