Sha256: d1bd35635ee068dc3706738a466ef6ab857e87f3145e74de375cc6c0f5fce61e
Contents?: true
Size: 941 Bytes
Versions: 1
Compression:
Stored size: 941 Bytes
Contents
# MobileIntent link to start application. full of fuck'n shit. ## Installation Add this line to your application's Gemfile: gem 'mobile_intent' And then execute: $ bundle Or install it yourself as: $ gem install mobile_intent ## Usage ### setup in config/initializer/mobile_intent.rb ```ruby MobileIntent.setup do register :myapp, :android => 'com.example.myapp', :ios => 'myappname' end ``` ### link_to in your view ```ruby <%= launch_app 'open app', :myapp, 'mypage', :class => 'btn' %> <%= launch_app :myapp, 'mypage', :class => 'btn' do %> <i class="icon-app" /> open app <% end %> ``` it create A-tag to start application with "myapp://mypage" or redirect to store. ## Contributing 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mobile_intent-0.0.1 | README.md |