app/controllers/pages_controller.rb
# Checks to see if the user's browser is a version of Internet Explorer 8. If so, warns them
# that IE8 does not display the graphs properly
Checks to see if the user's browser is a version of Internet Explorer 8. If so, warns them
that IE8 does not display the graphs properly
Checks to see if the user ' s browser is a version of Internet Explorer 8 . If so warns them that IE8 does not display the graphs properly
def check_for_internet_explorer
      result  = request.env['HTTP_USER_AGENT']
      if(result.index("MSIE") && result.index("8."))
        flash[:error] = t(:compatability_message)
      end
    end
def check_for_internet_explorer result = request . env [ 'HTTP_USER_AGENT' ] if ( result . index ( "MSIE" ) && result . index ( "8." ) ) flash [ :error ] = t ( :compatability_message ) end end
Checks to see if the user's browser is a version of Internet Explorer 8.
Checks to see if the user ' s browser is a version of Internet Explorer 8 .