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.
Fotorama is created and maintained by Artem Polikarpov.
-
Add
fotoramajsgem toGemfile:gem 'fotoramajs'
-
Install gems:
bundle install
-
Include jQuery in your project. I recommend jquery-rails-cdn.
-
Include Fotorama script, for example, in
application.js.coffee:#= require fotorama -
Include Fotorama styles, for example, in
application.css.sass:@import 'fotorama'
-
Use Fotorama by documentation.
To update original library, you can use rake update task.