Is there a way to import multiple Javascript and CSS files into my Ruby on Rails project?
In my project, the JavaScript files are located in the /js
directory and the CSS files are located in the /css
directory, with numerous subfolders within each.
I've attempted to update the manifest.js
file and manually add stylesheet links in the application.html.erb
, but unfortunately the files are not getting included in the project.
Instead of individually specifying each file, I'd prefer to point the manifest file at specific folders. For example, if I have files in various subfolders under
assets/css/subfolder/subfolder/subfolder
, how can this be achieved?
The same question applies for importing Javascript files as well.