Sha256: b2838e296c25fa9a97020f131c9a6f74e246b74c730b82d01b920853c5ac6d93

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

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

Originally developed by [juliocesar](http://github.com/juliocesar). I forked and gemified for easier distribution.

# general usage

just 

    gem install sant0sk1-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 'sant0sk1-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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wjessop-rack-noie6-1.1.0 README.markdown