In Rails, I want to drive the asset pipeline to compile and minify my js file and get the result as a string. The js file uses sprockets to combine multiple files together.
How can I do this?
This needs to be run from a controller action. It's not as simple as just serving an asset, rather, I want to get my compiled and minified JS as a string and then do something with it.