This post originated from an RSS feed registered with Ruby Buzz
by Vincent Woo.
Original Post: Unclobbering IE7 Compatibility in Rails 3
Feed Title: Undefined Range
Feed URL: http://www.undefinedrange.com/categories/ruby-on-rails.rss
Feed Description: Interesting things I experience with Ruby on Rails.
I work with an Apple computer and have to open virtual machines to test websites with the various versions of Internet Explorer. That becomes rather tedious and annoying but it helps that I can check IE7 using the IE8 web browser so that is one less VM to worry about. Recently, I started working on a new website using Rails 3 and, to my dismay, the IE7 compat button was missing. Turns out that is a deliberate Rails 3 decision.
Looking at the Rails source code, it is adding a X-UA-Compatible header to always target the latest IE browser version. The good news is we can disable it for IE7 testing purposes. In #{Rails.root}/config/application.rb:
config.action_dispatch.best_standards_support = false if Rails.env == 'development'