Skip to content

Latest commit

 

History

History
38 lines (19 loc) · 973 Bytes

README.md

File metadata and controls

38 lines (19 loc) · 973 Bytes

pcs_vegas

Preamble

pcs_vegas is a gem that packages the asset files used in Jay Salvat's Vegas Background jQuery plugin.

Setup

In a Rails 3.1.x project add the gem to your assets group in your Gemfile. It is currently in pre-release:

gem "pcs_vegas", "~> 0.0.1.alpha"

Bundle the gem using bundler:

bundle

Once your bundle is updated, you can automatically add the assets to your CSS and Javascript manifest files using the generator:

rails generate vegas:install

Alternatively, you can manually require the assets by adding:

//= require vegas

to your application.js and

*= require vegas

to your application.css.

You may need to restart your application for the changes to reflect (I find this behaviour a bit odd and am looking in to why).

Usage

Once the setup is complete, you'll be able to use the plugin. You can learn more about it from the plugin website.

Enjoy!