No commit activity in last 3 years
No release in over 3 years
A Rack middleware to redirect IE6 users out of your website
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

rack-noie

rack-noie is the coolest rack middleware ever created. And it is so because it does everyone a favor: it shows the way out of your website to poor souls out there using Internet Explorer 6.

installation

sudo gem install robworley-rack-noie -s http://gemcutter.org

usage

just

require 'noie'

and

use Rack::NoIE, :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::NoIE, :redirect => 'http://slashdot.org'

you can also define specific regex patterns or paths to redirect

use Rack::NoIE, :only => /^\/admin\//

or define specific regex patterns or paths as exceptions

use Rack::NoIE, :except => /^\/admin\//
use Rack::NoIE, :except => "/login"
use Rack::NoIE, :except => ["/home", "/login"]

or let the default kick in

use Rack::NoIE

disclaimer

I'm a nice guy. I'm so nice that the default URL points to Microsoft's IE8 upgrade page.

license

MIT, as usual.