Easily add jReject plugin for warning users that you don't support certain browsers and prompting them to upgrade.
Add this line to your application's Gemfile:
gem 'jreject_rails'
And then execute:
$ bundle
Add javascript sprocket include to application.js:
//= require jquery.reject
Add css sprocket include to application.css:
*= require jquery.reject
javascript:
$(function() {
$.reject({
reject: {
msie5: true,
msie6: true,
msie7: true
}
});
});
coffeescript:
$ ->
$.reject reject:
msie5: true, msie6: true, msie7: true
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request