gist-embed.js for Rails
Add this line to your application's Gemfile:
gem 'gist-embed-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install gist-embed-rails
Add to application.js
//= require jquery
//= require gist-embed
Add in html template:
<code data-gist-id="<gist-id>"></code>
Variants of usage: http://blairvanderhoof.com
Compatable with jquery.turbolinks
To refresh gem, run:
$ rake gist_embed:upload