Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Detect chrome frame in application_controller.rb
- before_filter :chromeframe_detect
- protected
- def chromeframe_detect
- ua = request.user_agent
- @win_ie_with_chromeframe = ua =~ /Windows NT/ and ua =~ /MSIE (\d+)/ and $1.to_i < 9 and ua =~ /chromeframe/
- end
Add Comment
Please, Sign In to add comment