The selectivizr-rails gem will include the Selectivizr.js library (http://selectivizr.com/) into your Rails 3.1 or higher app via the asset pipeline.
Add the following to your GemFile:
gem 'selectivizr-rails'
Then add the following to your application.js manifest:
//= require selectivizr
Don't forget to run bundle update
after upgrading to the latest gem version to ensure it's used by your rails app.
This gem code is free to use, modify, distribute or use in any way you would like. The selectivizr library is released under the MIT License ( http://www.opensource.org/licenses/mit-license.php )
A large portion of this gem was assembled based on the source code for the modernizer-rails gem (https://github.com/russfrisch/modernizr-rails) by Russ Frisch (https://github.com/russfrisch)