Rails 4.2 : image path trouble in JS
<p>Following is a part of my code. background images are not being loaded.i've tried things like  '&lt;%= asset_path("images/bg1.jpg") %>' and "images/bg1.jpg" etc .I'm new in rails can anyone point me in right direction ?</p>

<pre><code>$(".login-bg").backstretch(["bg1.jpg","bg2.jpg","bg3.jpg"],{fade:1e3,duration:8e3})
</code></pre>