1 Comment

Detecting IE browser in Rails app


I have been working an app that is used by many users that are still on MS XP and using IE8.  It is a javascript heavy app and I have many issues in dealing with the cross-browser compatibility (IE) but today I found a great gem.

I was trying everything using CSS to hide a div in IE 8 to no avail.  And then Browser Gem to the rescue.

I added a simple check for IE 8 in my view:

    = if browser.ie8?

Thank you browser gem!!!

One comment on “Detecting IE browser in Rails app

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: