I have a line of javascript within my view in my rails app:
<script>
$(this).find("img").attr("src", "/assets/img5.png");
</script>
I have the image path hard coded as you can see. This is working fine locally, but is not working well on production because i'm serving the assets through a cdn.
How do I include an image tag without messing up the javascript?