Sha256: e1133c1fe709573a1c8ce86a8fdb34dc996a77e6d3a9fc3e8129ceadc0f2976f
Contents?: true
Size: 838 Bytes
Versions: 1
Compression:
Stored size: 838 Bytes
Contents
# gist-embed.js for Rails [![Gem Version](https://badge.fury.io/rb/gist-embed-rails.svg)](http://badge.fury.io/rb/gist-embed-rails) [gist-embed.js](https://github.com/blairvanderhoof/gist-embed) for Rails ## Installation Add this line to your application's Gemfile: ```ruby gem 'gist-embed-rails' ``` And then execute: $ bundle Or install it yourself as: $ gem install gist-embed-rails Add to `application.js` ```javascript //= require jquery //= require gist-embed ``` Add in html template: ```html <code data-gist-id="<gist-id>"></code> ``` ## Usage Variants of usage: [http://blairvanderhoof.com](http://blairvanderhoof.com/gist-embed/) ## Turbolinks Compatable with [jquery.turbolinks](https://github.com/kossnocorp/jquery.turbolinks) ## Contributing To refresh gem, run: ```shell $ rake gist_embed:upload ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gist-embed-rails-2.0.1 | README.md |