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!

  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