add-to-homescreen-rails

Provides the 'Add to Home screen' assets for your Rails application.


Install
gem install add-to-homescreen-rails -v 3.2.2.1

Documentation

THIS GEM IS NO LONGER UPDATED

If you require newer versions of the asset files you can download them from the Add to Homescreen repository.

Intro

This gem vendors the 'Add to Home screen' assets for Rails 3.1 and greater. The files will be added to the asset pipeline and available for you to use.

For info on how to use the plugin see the original documentation:

Add to Home screen

Praise for creating this tool should of course be directed at Matteo Spinelli!

For the orignal javascript and css file go to his Github repository.

Usage

In your Gemfile, add:

gem 'add-to-homescreen-rails'

You can include it by adding the following to your javascript application file:

//= require addtohomescreen

And to the css application file:

/*
 *= require addtohomescreen
 */