I'm working on a ROR application and i need to get an array from my database and use it on JS , so i did this
var tab = <%= @users.collect{|item| item.names }%>;
But when i try to use may Tab i get this error :
SyntaxError: syntax error
var tab = ["123456789", "fDF125847", "124578&q
i think that I need to cast the & quot; to " but i dont know how ??