Smart App Banner
smart-app-banner
is a Rails helper for providing Smart App Banners
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.
<%= smart_app_banner(app_id) %>
As per Apple's guidelines, there are two optional arguments:
<%= smart_app_banner(app_id, { affiliate-data: "imkmf", app-argument: "from-website" } %>
You can read more about these here.
Contributing
Pull requests always welcome!
- 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