I am utilizing an HTML, CSS, and JS template to design the interface for my Rails application. Within this template, there are several plug-ins that are required in both CSS and JS formats. I have stored these plug-ins within the "/assets/plugins/" directory and attempted to call them using the code below:
<script type="text/javascript">var plugin_path = 'assets/plugins/';</script>
<script type="text/javascript" src="assets/plugins/myplugin/myplugin.js"></script>
Unfortunately, this method is not working as expected. Is there a different way to properly call these plug-ins from my *.html.erb file?