Fotorama is a simple, stunning, powerful JavaScript gallery.
This is packager, that allows you to simply install and maintain Fotorama
by RubyGem in Rails Assets Pipeline. In development it will use local copy
and in production it will use CDN.
Fotorama was created and maintained by Artem Polikarpov.
Add fotoramajs gem to Gemfile:
gem 'fotoramajs'
Install gems:
bundle install
Include jQuery in your project. I recommend jquery-cdn
or jquery-rails-cdn.
Put include_fotorama after jQuery script tag:
head
= include_jquery
= include_fotorama
Use Fotorama by documentation.
To update original library, you can use rake update task.