Sha256: 8b7d16dd32c20b9a500c67581adebaeafde446ed856815137f2c44a6d57c1f88

Contents?: true

Size: 1005 Bytes

Versions: 1

Compression:

Stored size: 1005 Bytes

Contents

# 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

# 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.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
robworley-rack-noie-1.0 README.markdown