How can I get the root_path project in the application.js file?
I need this for a js plugin ( codemirror ) that needs to load other JS files. All this is fine and dandy if I say / javascripts/needed_file.js, but what if I split my project into / custom.
The code should do its magic throughout the project, and I would like it to be UJS, so it should be in a static javascript file.
Any solutions / simple hacks?
javascript ruby-on-rails codemirror
alexcepoi
source share