I have view diplay.html.erb corresponding to action display in locations controller.
I am using application.js in assets/javascript folder.
I am using javascript function of application.js in the display.html.erb file.
In this function I am loading image but the image is not loaded when used path:
such as "car.png"
or "\images\car.png"
but when used path
"http://localhost:3000/assets/car.png"
it is displayed properly.
so what path should I give in application.js to access image in /assets/images folder?