question reworked for clarity and brevity
I am trying to install the [Slider Revolution][1] plugin on my Rails 4 application and I am having trouble with dynamically created relative paths in the jquery.themepunch.revolution.js file. The javascript snippet that I've placed on the page (as per the docs) sets a parent directory via this code:
jsFileLocation:"../../revolution/js/",
This directory tells the code in jquery.themepunch.revolution.js where to find the "extensions" folder.
But, if I use that bit of js on my page I get this error
Slider Revolution 5.0 Error !
Failure at Loading:revolution.extension.navigation.min.js on Path:extensions/
as the js is telling the browser to search HERE for the file:
http://localhost:5000/revolution/js/extensions/revolution.extension.actions.min.js
when in reality the actual location is something like:
http://localhost:5000/assets/javascripts/plugins/revolution/extensions/revolution.extension.actions.min.js
I've tried setting the js snippet to the following options:
jsFileLocation:"../../assets/",
jsFileLocation:"../../assets/javascripts/",
jsFileLocation:"/assets/",
jsFileLocation:"/assets/javascripts/plugins/revolution/",
jsFileLocation:"/assets/plugins/revolution/",
It still doesn't work.
Please try /assets/plugins/revolution/
as the js location. I am assuming you haven't tried it.