Vegas function is not loading images in Rails app
<p>I am trying to get my background images to load using the vegas function in my js file.  But it is not able to find the images in my rails asset pipeline for some reason. I've tried "../images/bg1.pg" as well but that did not work either. </p>

<p>**Error shown in console"</p>

<pre><code>GET:  http://hostname/images/bg1.jpg not found 
</code></pre>

<p><strong>Vegas function in js file:</strong></p>

<pre><code>// Image background
    $.vegas({ src: '/images/bg1.jpg'
    });

    $.vegas('overlay', {
        src:'/images/06.png'
    });
</code></pre>

<p><strong>Location of where my JS files are stored in my asset pipeline:</strong></p>

<p>app/assets/javascripts</p>

<p><strong>Location of where my images are located:</strong></p>

<p>app/assets/images</p>