imgViewer-Rails Gem Version

imgViewer, jQuery plugin to zoom and pan images rails wrap.

Installation

Add this line to your application's Gemfile:

gem 'imgViewer-rails'

And then execute:

$ bundle

How to use

Add to your JavaScript manifest file (application.js):

//= require hammer
//= require jquery.hammer
//= require jquery.mousewheel
//= require imgViewer

Visit official doc