> = Rails 3.1. How to include IE YAML-CSS file in a specific pipeline

How to enable Yaml-CSS costume iehacks.css? The yaml documentation points to something like this conditional statement.

<!--[if lte IE 7]>         
<link rel="stylesheet" href="stylesheets/yaml/core/iehacks.css" type="text/css"/>
<![endif]--> 

How to include this css file in my Rails 3.1 ++ application (depending on IE or not IE;) with new rail pipeline features?

+5
source share
1 answer

In config / application.rb add the following line:

config.assets.precompile += %w(iehacks.css)

For preliminary compilation, only files inside the application manifest are automatically used.

Additional files must be declared manually.

I hope this helps and sorry for my english.

0
source

All Articles