was inspired by the Browser selectors in CSS post by 37signals.
Itâ??s pretty naive at the moment, but could be nice to build on in the
future. It adds two helper methods available in your views - browser_is?
<%= browser_name %> => mozilla (or whatever)
<% if browser_is? :mozilla %>
<% end %>
More on this blog post:
Or view the source: