requirejs-rails
requirejs-rails copied to clipboard
requirejs_include doesn't work with subdirectories
Something like
requirejs_include "backbone/main"
gives an error that it can't find path/to/assets/main.js
instead of /path/to/assets/backbone/main.js
. Is this a bug? The file to be compiled is located at app/assets/javascripts/backbone/main.js.coffee
.
Just noticed this behavior as well, unfortunately a dealbreaker for me due to having various modules/namespaces in our app.
This definitely seems like a bug. I'll review further.