I just came across a blog that mentions a j function in Rails. They were using it to do ajax style page updates.
$('#cart').html("<%=j render @cart %>");
I get they are using partials to render the cart partial, but whats the point of j? I’ve found some articles that say it converts the string to something JavaScript will accept, but what does that mean?
From the the rails docs.