In my stylesheet I have application.css, ie_fixes.cssand themes. There are about twenty css files in the themes directory. All of these stylesheets, minus ie_fixes, are necessary for widespread use, therefore they are included in the application layout. The value of ie_fixes.css should only be included if the user browser is IE. I would like to be able to include everything in the themes folder in one, compressed line of code.
Rails provides an easy way to include all stylesheets by following these steps:
stylesheet_link_tag :all, :recursive => true
Unusually, but the problem is that it includes mine ie_fixes.cssin every browser, causing my conditional IE comments out of the water. So my question is, is there an easy way to include all stylesheets for a subdirectory without specifying each file name?
I tried different options to stylesheet_link_tag 'themes/', :recursive => trueno avail. It seems that all this method preends the stylehseet directory and adds .css if necessary.
source
share