On the topic of the asset pipeline, Rails Guides suggest that Rails can link to controller specific CSS files simply by calling:
stylesheet_link_tag params[:controller]
The excerpt from Rails Guides:
For example, if you generate a ProjectsController, Rails will also add a new file at app/assets/javascripts/projects.js.coffee and another at app/assets/stylesheets/projects.css.scss. You should put any JavaScript or CSS unique to a controller inside their respective asset files, as these files can then be loaded just for these controllers with lines such as <%= javascript_include_tag params[:controller] %> or <%= stylesheet_link_tag params[:controller] %>. http://guides.rubyonrails.org/asset_pipeline.html#how-to-use-the-asset-pipeline
Thats works just fine in development where we allow Rails to fall back on the asset pipeline. In production, however, I get an error saying that the stylesheet isn't precompiled.
From what I've read, you have to add any assets that you want to be manifested as independent files to the precompile array like this:
config.assets.precompile += ['admin.js', 'admin.css', 'swfObject.js']
If I want controller specific stylesheets that are linked as per the Rails Guide example above, do I have to enumerate each one in the precompile array?