Maybe this option can help you:
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
It's off (false) by default, but if you wanted you could turn it on.
In that case, you probably need to make this group
in your Gemfile
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
gem 'uglifier'
gem 'bootstrap-sass'
end
also available in production (which would mean to put it
outside of the :assets group).
HTH,
Peter