[ANN] browser_detect plugin

I just knocked up a quick plugin based on Rafael L.â??s Javascript which
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?
and browser_name

<%= browser_name %> => mozilla (or whatever)

<% if browser_is? :mozilla %>
do something
<% end %>

More on this blog post:

Or view the source:

Also at http://agilewebdevelopment.com/plugins/browser_detect :slight_smile:

Benjamin C.
http://www.tesly.com/ – Collaborative test case management
http://www.agilewebdevelopment.com/ – Resources for the Rails community