Displaying 1 result from an estimated 1 matches for "browser_i".
Did you mean:
browser_8
2006 Jul 22
1
browser_detect plugin
I just knocked up a quick plugin based on Rafael Lima?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:
http://livsey.org/articles/2006/07/22/browser_detect-plugin
Or view the source:
http://svn.livsey.org/plugins/browser_detect/
--
R...