Early alpha version of a Rails 3.1+ asset gem for recurly-js
Add this line to your application's Gemfile:
gem 'recurly-js-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install recurly-js-rails
To include the js and css everywhere add:
//= require recurly
to both your application.js and application.css
To just include on your subscription pages, add:
config.assets.precompile += %w{recurly.css recurly.js}
To your application.rb and use stylesheet_link_tag "recurly"
and javascript_include_tag "recurly"
where appropriate
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request