Colorbox for the Rails 3.1+ asset pipeline
Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

jquery-colorbox-rails

jquery-colorbox-rails integrates jquery.colorbox with rails 3.1+ asset pipeline.

Colorbox version: 1.6.4

Installation

Add

gem 'jquery-colorbox-rails'

to your Gemfile

and

//= require jquery.colorbox

to your app/assets/javascripts/application.js or other js manifest file.

For i18n integration (e.g. pl language) also add:

//= require jquery.colorbox-pl

To use one of attached css examples add:

*= require jquery.colorbox-example1

to your css manifest file. There are 5 examples availables (example1, example2...and so on).