Redirect users to a message page when accessed through IE7

css, internet-explorer-7, ruby-on-rails-3

Solution

You could do a script to redirect:

<!--[if IE 7]>
  <script type="text/javascript">
    window.location = "http://www.google.com/";
  </script>
<![endif]-->

Or a html:

<!--[if IE 7]>
  <meta http-equiv="REFRESH" content="0;url=http://www.google.com/">
<![endif]-->

Or simply leave a message saying that this site don't support

Problem

I am using ruby on rails 3 for my site and am almost finished, the site is due to go live very soon (Monday) but I am having problems with IE7 compatability, so as a temporary measure I would like to have users redirected to a "404" esque page if they are using IE7, it will just have some basic info stating to try another browser for now until the issues are fixed How would i go about this in rails 3? Has anyone done anything like this in the past? I dont want to get into the should I/shouldnt I support IE7, I am going to, just going to take a little longer than I thought Any help on this appreciated

Original source

Related problems