public
Fork of sant0sk1/rack-noie6
Description: A Rack middleware to redirect (*cough* kick) IE6 users out of your website
Homepage:
Clone URL: git://github.com/wjessop/rack-noie6.git
name age message
file .gitignore Tue Apr 14 09:37:29 -0700 2009 first steps towards gemifying. [sant0sk1]
file README.markdown Wed May 27 01:37:55 -0700 2009 Update README to be relevant to this fork. [wjessop]
file Rakefile Tue Apr 14 09:37:29 -0700 2009 first steps towards gemifying. [sant0sk1]
file VERSION.yml Mon May 11 07:29:54 -0700 2009 Version bump to 1.0.1 [sant0sk1]
directory lib/ Tue May 26 06:05:09 -0700 2009 Allow a minimum IE version to be specified [wjessop]
file rack-noie6.gemspec Tue May 26 06:33:46 -0700 2009 Update gemspec to be relevant to this fork [wjessop]
directory test/ Tue May 26 06:05:09 -0700 2009 Allow a minimum IE version to be specified [wjessop]
README.markdown

rack-noie6

rack-noie6 does everyone a favor: it shows the way out of your website to poor souls out there using Internet Explorer 6 (or a user configurable minimum).

Originally developed by juliocesar, sant0sk1 forked and gemified for easier distribution and I added the minimum version option.

general usage

just

gem install wjessop-rack-noie6 --source http://gems.github.com
require 'noie6'

and

use Rack::NoIE6, :redirect => '/noieplease.html'

the above will redirect to a page noieplease.html in your website. You can redirect to a URL as well, like so

use Rack::NoIE6, :redirect => 'http://slashdot.org'

or let the default kick in

use Rack::NoIE6

You can even specify a minimum version of IE like so

use Rack::NoIE6, :redirect => 'http://slashdot.org', :minimum => 6.0

Rails usage

inside environment.rb's Rails::Initializer.run

config.gem 'wjessop-rack-noie6', :lib => 'noie6'
config.middleware.use "Rack::NoIE6"

Piece o' cake!

disclaimer

The default URL points to Microsoft's IE8 upgrade page.

license

MIT