Plug This: css_browser_selector plugin May 22, 2008Posted by reidmix in Code, Plugins & Gems, Rails.
Tags: Announcement, css, plugin, Rails
<html class="gecko mac js">
<% body do %> <%= yield %> <% end %>
And this will add the selectors as you would expect to your body tag:
<body class="gecko mac">
This is my first plugin and, yes, I still have some work to do (complete my tests, better caching awareness, sensitivity to pre-existing body and html tag helpers), but I wanted to share back to the community. Following Giles Bowkett‘s mantra to release software (often and early).