Also at http://agilewebdevelopment.com/plugins/browser_detect :)
--
Benjamin Curtis
http://www.bencurtis.com/
http://www.tesly.com/ -- Collaborative test case management
http://www.agilewebdevelopment.com/ -- Resources for the Rails community
On Jul 22, 2006, at 12:57 PM, Richard Livsey wrote:
> 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.Livsey
> http://livsey.org
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060722/27c4a7bd/attachment.html