The selectivizr-rails gem will include the selectivizr.js library into your Rails app via the asset pipeline.
Add the following to your Gemfile and run bundle install
:
gem 'selectivizr-rails'
Add the following to the head
tag in your layout:
<!--[if lte IE 8]>
<%= javascript_include_tag 'selectivizr' %>
<![endif]-->
- Rails 3.1+
- The main JavaScript library (JQuery, Prototype, etc.) must be included prior to the selectivizr include tag.
There shouldn't be much to do with this repo, but if you would like to improve the code or do a version bump, just fork the code and submit a pull request. I try to deal with all pull requests quickly.
This gem code is free to use, modify, distribute or use in any way you would like. The selectivizr.js library is released under the MIT License.
A large portion of this gem was assembled based on the source code for the modernizer-rails gem by Russ Frisch.