Installing gem

Add to your Gemfile:

gem 'pswp-rails', '~> 4.0'

Add to your javascript:

#= require photoswipe

Add to your stylesheet:
1) if you are using compass

@import 'photoswipe-compass';

2) if you are not using compass:

@import 'photoswipe';