If you have assets pipeline enabled. By default you need to precompile your assets every time you change something (in production env). Having everything precompiled is cool but this will ask rails compile any assets that are not already compiled.
# Don't fallback to assets pipeline if a precompiled asset is missed config.assets.compile = true
Page Specific JS/CSS
If you want some JS/CSS to only be included in a specific set of pages.
- break the page specific JS/CSS code to different files (ex:- profiles.js)
- make sure they are not referenced in your manifest file (application.js)
- add the following code snippets to the necessary files
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) config.assets.precompile += %w( profiles.js )
Deploying with Capistrano
This is easy enough
If you ever run across this problem: