Adds a Typekit helper to your Rails application and uses some best practices for the integration.
In your Gemfile
just add:
gem 'typekit-rails'
Run the generator which will prompt you for your kit ID.
rails g typekit:install
Add the JavaScript helper to application.js
or equivalent:
//= require typekit
Specify your kit ID as such right near the top of your <head>
element:
<%= typekit 'abc123def456' %>
Licensed under the MIT License.
- Chris Bielinski chris@shadowreactor.com