Sha256: 7364289d841c3e9854525f14539f9a3b43d02075f11d303010c990f8d6f5ba60
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
# Smart App Banner `smart-app-banner` is a Rails helper for providing [Smart App Banners](apple) ## Installation Add this line to your application's Gemfile: gem 'smart-app-banner' And then execute: $ bundle Or install it yourself as: $ gem install smart-app-banner ## Usage `smart-app-banner` uses a text tag, which means it can be easily integrated into any Rails view. ```erb <%= smart_app_banner(app_id) %> ``` As per Apple's guidelines, there are two optional arguments: ```erb <%= smart_app_banner(app_id, { affiliate-data: "imkmf", app-argument: "from-website" } %> ``` You can read more about these [here](apple). ## Contributing Pull requests always welcome! 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request [apple]: https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smart-app-banner-0.0.2 | README.md |
smart-app-banner-0.0.1 | README.md |