Here's my biopsis
Works :
:plain
console.log("#{escape_javascript(render(@job_charge).html_safe)}");
Does not work ( but should? ) :
:plain
console.log("#{j render(@job_charge).html_safe }");
It looks like j
is actually shorthand for json_escape
, not escape_javascript
.