Stupid Rails Mistakes: Asset Packaging
If you’re working with a design team that uses the same CSS id and class selector names across multiple CSS files, if you run asset packaging (cache = ‘true’), you’ll bundle all of the CSS files together and your site will probably berserk on you - a fun way to torture your designers who don’t know Rails. If you chose not to torture designers needlessly, you might want to name space the asset packaging (:cache => ’signup’) based on your layout name or something. Or just skip this Rails feature altogether if you aren’t bringing down that much information. You should probably measure, rather rely on your assumptions.




