Use skeuocard with rails 3.1+ asset pipeline.
This gem vendors skeuocard for Rails 3.1 and greater. The files will be added to the asset pipeline and available for you to use.
First add the following lines to your applications Gemfile:
gem 'skeuocard-rails'Then run bundle install to update your application's bundle.
Now you need to edit your app/assets/javascripts/application.js
file and add the following line:
//= require skeuocardAnd then edit your app/assets/stylesheets/application.css file to
look something like:
/*
*= require_self
*= require skeuocard.reset
*= require skeuocard
*= require_tree .
*/Simply call the card with javascript after implementing the correct html.
window.card = new Skeuocard($("#skeuocard"));Everything is better explained her : https://github.com/kenkeiter/skeuocard
- 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
- @sworbel : sync with version 1.0.3 of skeuocard
Copyright (c) Rouge Cardinal