Skip to content

robworley/rack-noie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Rack middleware to redirect (*cough* kick) IE6 users out of your website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%