dealing with an interesting problem. I'm using a third party plug in, Galleria. It runs from the body of the view like so
<script>
Galleria.loadTheme('/assets/galleria/themes/classic/galleria.classic.min.js');
Galleria.run('.galleria'...
</script>
I've realized that with the Rails asset pipeline, I have to use helper tags, otherwise the asset doesn't load. Therefore I subbed the first line out like so:
Galleria.loadTheme("<%= javascript_include_tag 'galleria.classic.min.js', '/galleria/themes/classic' %>");
But I'm not sure what to do about the Galleria.run('.galleria' part, since that's not an asset, that's telling it to run the thing that it should have loaded. Leaving it as is has not worked, so wanted to see if there were any other ideas.
EDIT: What ended up working was this lovely post from someone else, + a few bits that I had to add on myself: How to use Galleria plugin with Rails 4 Pipeline