Ruby on Rails helper insert the stylesheet according to the browser.
./script/plugin install git://github.com/patrickespake/stylesheet_by_browser.git
Then install the necessary files into your public directory by running
rake stylesheet_by_browser:install
The files will be added: chrome.css, firefox.css, ie.css, opera.css and safari.css in the directory public/stylesheets.
Lastly, add the following line to the head element of your application view:
<%= stylesheet_by_browser %>
Now you’re all set!
<%= stylesheet_by_browser %>
<%= stylesheet_by_browser :media => "all" %>
<%= stylesheet_by_browser :media => "print" %>
<%= stylesheet_by_browser :media => "screen" %>
http://lab.patrickespake.com/stylesheet_by_browser
rake stylesheet_by_browser:uninstall
Copyright © 2009 Patrick Espake, released under the MIT license
Site: http://www.patrickespake.com
Blog: http://blog.patrickespake.com
Email: [email protected]