Sha256: 07017593be2f5c10008914d8d5827800f822a41567a70a5b549db996d027dd8a
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
= IntercomRails Rails helper for creating Intercom (https://www.intercom.io) javascript tags. For interacting with the Intercom API, use the intercom gem (https://github.com/intercom/intercom-ruby) == Installation Add this to your Gemfile: gem "intercom-rails" <code>bundle install</code> == Usage In your layout file: <% if logged_in? %> <%= intercom_script_tag({ :app_id => 'your-app-id' :user_id => current_user.id :email => current_user.email :name => current_user.name :created_at => current_user.created_at :custom_data => {:plan => "Pro"}}) %> <% end %> See {IntercomRails::ScriptTagHelper} for more details. == License This project rocks and uses MIT-LICENSE.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
intercom-rails-0.0.1 | README.rdoc |