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
How'd We Do?
Was this article missing something?
Was it not quite what you were looking for?
Do you have suggestions on how we could improve this article or your experience in general?
If so, please take a moment to let us know!
Your invaluable feedback will help everyone better understand the platform!