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
- Add
fotoramajsgem toGemfile:
gem 'fotoramajs'
- Install gems:
bundle install
- Include jQuery in your project. I recommend jquery-cdn or jquery-rails-cdn.
- Put
include_fotoramaafter jQuery script tag:
head
= include_jquery
= include_fotorama
- Use Fotorama by documentation.
Development
To update original library, you can use rake update task.