I have a library of scripts that I would like to implement on the client side of my rails application;
In the view, I know that I can do the following.
<%= javascript_include_tag 'folder/script.js' %>
..
And since there are so many separate script files, this process is very wasted and redundant.
I know that there is a way to include all scripts in the public / javascript folder
<%= javascript_include_tag :all %>
But this will include unwanted scripts outside the target folder specifically for one view.
Is there a way to include only all scripts in a specific folder?
Thanks in advance
source
share