Rails Asset Manifests
Rails ships with a feature known as the asset pipeline, which is covered in detail in this excellent Rails guide. If you're new to Ruby on Rails, that guide and the other Rails guides are your friends.
The asset pipeline is used to bundle together assets and optimize them in production environments.
//= require jquery //= require lodash //= require some_js_file //= require some_other_js_file //= require ... //= require ... //= require ... //...
You add a manifest like this to your app using rails asset view helpers provided by Rails. In a development environment, each file in the manfest is included as a separate
script element. In production, the assets are concatenated into a single file (named after the manifest) and minified.
Workarea Asset Manifests
Help Us Improve this Doc
Was this helpful? Open a GitHub issue to report a problem with this doc, suggest an improvement, or otherwise provide feedback. Thanks!