Sha256: a4d68b8164e5f71aabf3f8ad0c60fce53f0e4fd11c9595585e82df11463cc71b

Contents?: true

Size: 948 Bytes

Versions: 2

Compression:

Stored size: 948 Bytes

Contents

fancybox-rails
==============

Use [fancybox](http://fancybox.net/) with rails 3.1 asset pipeline.

## Installation

This gem vendors jquery fancybox 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`:

``` ruby
gem 'jquery-rails'
gem 'fancybox-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:

``` javascript
//= require fancybox
```

And then edit your `app/assets/stylesheets/application.css` file to
look something like:

``` css
/*
 *= require_self
 *= require fancybox
 *= require_tree .
 */
```

That's it!

## Usage

With the gem installed and included in your asset manifests, you can now
use fancybox as you normally would.

``` javascript
jQuery(function() {
  $("a.fancybox").fancybox();
});
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fancybox-rails-0.1.1 README.md
fancybox-rails-0.1.0 README.md