Skip to content

The skeuocard-rails gem integrates skeuocard with the asset pipeline

License

Notifications You must be signed in to change notification settings

mazikwyry/skeuocard-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skeuocard-rails

Use skeuocard with rails 3.1+ asset pipeline.

Installation

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:

(NOTE: Various browser hacks in the skeuocard CSS require css_ua.js to function properly. To avoid browser issues, make sure to include it if it is not already included in your project.)

//= require css_ua # Omit if already included elsewhere
//= require skeuocard
And then edit your `app/assets/stylesheets/application.css` file to
look something like:

``` css
/*
 *= require_self
 *= require skeuocard.reset
 *= require skeuocard
 *= require_tree .
 */

Usage

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Contributions

  • @sworbel : sync with version 1.0.3 of skeuocard

Useful links

Copyright (c) Rouge Cardinal

About

The skeuocard-rails gem integrates skeuocard with the asset pipeline

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 77.2%
  • CSS 21.5%
  • Ruby 1.3%