Assets & Precompilation
Gem versions 2.4.1 and later include support for Rails 3's asset pipeline using Capistrano's default
assets recipe. To enable assets support, add the following line to your Capfile
deploy/assets recipe will automatically handle asset precompilation for production environments during deployment. For more information, please see the official documentation.
shared/assets. If you already use this shared folder you'll need to write your own deployment task.
It is important that this folder is shared between deployments so that remotely cached pages that reference the old compiled assets still work for the life of the cached page.