Sha256: c35ed3feab5d1d5d36b5f63f28353a357b68f3e5aa4293b09187690404dc052f
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
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 -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.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
robworley-rack-noie-1.0.1 | README.markdown |