This is a Rails-Wrapper for picturefill.js: https://github.com/scottjehl/picturefill
Add this line to your application's Gemfile:
gem 'picturefill'
And then execute:
$ bundle
Or install it yourself as:
$ gem install picturefill
Add this line to your application layout (asset-pipeline enabled)
= javascript_include_tag 'picturefill.all'
Or w/o asset-pipeline, add these two lines:
= javascript_include_tag 'matchmedia.min'
= javascript_include_tag 'picturefill.min'
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request