Fotorama for Ruby on Rails

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.

Install

  1. Add fotoramajs gem to Gemfile:
   gem 'fotoramajs'
  1. Install gems:
   bundle install
  1. Include jQuery in your project. I recommend jquery-cdn or jquery-rails-cdn.
  2. Put include_fotorama after jQuery script tag:
   head
     = include_jquery
     = include_fotorama
  1. Use Fotorama by documentation.

Development

To update original library, you can use rake update task.