This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 7c95d7bdc03d58d92cc5456fe8fb35f51854d94f
tree 914fa6b4748fcd06a76dba0d85ec9447f458fb35
parent fd8d9c71cee5013c700140e228a31f4df0b4f1a8
tree 914fa6b4748fcd06a76dba0d85ec9447f458fb35
parent fd8d9c71cee5013c700140e228a31f4df0b4f1a8
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Apr 14 09:37:29 -0700 2009 | |
| |
README.markdown | Sat Sep 26 08:54:24 -0700 2009 | |
| |
Rakefile | Sat May 30 06:57:17 -0700 2009 | |
| |
VERSION.yml | Sat May 30 06:56:51 -0700 2009 | |
| |
lib/ | Tue May 26 06:05:09 -0700 2009 | |
| |
rack-noie6.gemspec | Sat May 30 06:57:35 -0700 2009 | |
| |
test/ | Tue May 26 06:05:09 -0700 2009 |
README.markdown
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 (or a user configurable minimum).
Originally developed by juliocesar, sant0sk1 forked and gemified for easier distribution and wjessop added the minimum version option.
general usage
just
# from gemcutter (canonical)
gem sources --add http://gemcutter.org
gem install rack-noie6
# from GitHub (development)
gem sources --add http://gems.github.com
gem install sant0sk1-rack-noie6
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 '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







