Skip to content
Rails gem for easy prettyPhoto integration.
JavaScript Ruby
Latest commit dd888ff May 21, 2013 @cmager cmager update version 0.2.2


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

Currently this gem brings support for prettyPhoto v3.1.5.


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


Please refer to for all the details on how to use.


  • prettyPhoto is (c) Copyright Stephane Caron
  • This gem is maintained by @christian_mager
Something went wrong with that request. Please try again.