Insights on Ruby, Git, jQuery, Cappuccino, WordPress, Debian and OS X. Please subscribe if you find something useful!

New Gem: Rack-noIE6

Posted: April 18th, 2009 | Author: Jerod | Filed under: Projects, Ruby | Tags: , , | View Comments

Many web developers are discontinuing support for IE6. I, happily, am one of them (unless a client demands it). The other day I went searching for an IE6 detection and redirect solution to aide in my un-support of the browser. What I found was pretty rad.

Now that Rails is on Rack, dozens of useful middleware apps are being developed and can be plugged into Rails with ease. Thanks to a simple GitHub search, I found the rack-noie project by Julio Cesar.

His middleware did almost exactly what I wanted except for a few small things. First, I prefer using gems with Rails so dependencies can easily be managed using config.gem. Second, we’re just hating on IE6, not IE in general. Therefore, the name is a bit misleading.

So, in the spirit of open-source, I forked his project and molded it to my liking. You can see the shiny new rack-noie6 gem’s GitHub page here.

Its dead simple to integrate. First, install the gem

gem sources -a http://gems.github.com (only if you haven't yet)
gem install sant0sk1-rack-noie6

Next (if you’re using Rails), add the following to environment.rb inside the Rails::Initializer.run block:

config.gem 'sant0sk1-rack-noie6', :lib => 'noie6'
config.middleware.use "Rack::NoIE6"

As the IE6-BraveHeart would proclaim: FREEEEDOMMMM!


View Comments on “New Gem: Rack-noIE6”

  1. 1 Tim L said at 8:18 am on April 21st, 2009:

    try ie6update.com

  2. 2 Tim L said at 3:18 pm on April 21st, 2009:

    try ie6update.com

  3. 3 Double Shot #452 « A Fresh Cup said at 5:05 am on May 14th, 2009:

    [...] New Gem: Rack-noIE6 – Another solution to sending IE6 users off to upgrade. [...]

blog comments powered by Disqus