posted by hamin  11/12/2008

Not too long ago Peter wrote about BrowserWar and the IEWarfare project. BrowserWar is now available as a Rails plugin at github.

The BrowserWar plugin helps you detect IE, and enables easy detection and custom display messages of any browser/version. To install the BrowserWar plugin in your rails project simply type:

script/plugin install git://github.com/sagebit/browser_war.git

Default Usage:

1
2
3
startbrowserwar({:browsers => browserwarbrowsersdefault, 
:message => browserwarmessagedefault,
:options => browserwaroptionsdefault})
In your layouts, just do the following:
1
 <%= javascript_include_tag(:defaults, 'browserDetect', 'browserWar') %>

And that’s it! For more information checkout the README for the plugin. Head over to IEWarfare.com for more info.

Leave a Comment