my file is _file.html.erb :
<script type="text/javascript">
$(function(){
console.log("<%= escape_javascript( list ) %>");
});
</script>
This fails. But if I put in a debugger before the javascript gets rendered, and run list, it returns properly in console. How can I get an active working JSON object from list so that I can work with it?
Why not this?