I have a vendor library that has its own directories and many files (js and css a.o.). I have placed this as a folder in my_app/vendor/assets/external_library/
. How can I refer to files from this directory, for example in my views?
For example, there are the following two files:
- my_app/vendor/assets/external_library/editor.js
- my_app/vendor/assets/external_library/contents.css
To use these I have added:
- In application.js:
//= require editor
- In application.css.scss:
@import "contents";
- In my view:
<script src="editor.js"></script>
It does load the view page in development. But when I go to the page's source code and click on the link to the js file, it is unable to find that file. Am I doing something wrong?