No commit activity in last 3 years
No release in over 3 years
Rails gem for easy prettyPhoto (v3.1.5) integration. See http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ for more information on how to use prettyPhoto.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

prettyphoto-rails

A gem to easily integrate prettyPhoto with the rails 3.1+ asset pipeline.

Currently this gem brings support for prettyPhoto v3.1.5.

Installation

First add the following lines to your applications Gemfile:

gem 'jquery-rails'
gem 'prettyphoto-rails'

Run bundle install.

Add the following lines to app/assets/javascripts/application.js:

//= require jquery
//= require prettyphoto-rails
//= require prettyphoto-rails-dev /* use this for uncompressed javascript code */

Finalize the setup by adding these lines to app/assets/stylesheets/application.css:

/*
 *= require_self
 *= require prettyphoto-rails
 */

Usage

Please refer to http://www.no-margin-for-errors.com/projects/prettyPhoto/ for all the details on how to use.

Credits

  • prettyPhoto is (c) Copyright Stephane Caron
  • This gem is maintained by @christian_mager