https://github.com/ai/fotoramajs
Fotorama for Ruby on Rails
https://github.com/ai/fotoramajs
Last synced: 11 months ago
JSON representation
Fotorama for Ruby on Rails
- Host: GitHub
- URL: https://github.com/ai/fotoramajs
- Owner: ai
- License: other
- Created: 2013-07-15T10:26:45.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-05-14T11:01:38.000Z (about 11 years ago)
- Last Synced: 2025-07-01T07:59:05.633Z (12 months ago)
- Language: Ruby
- Homepage: http://fotorama.io/
- Size: 588 KB
- Stars: 44
- Watchers: 6
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
# 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].
[Fotorama]: http://fotorama.io/
[Artem Polikarpov]: http://artpolikarpov.ru/
## Install
1. Add `fotoramajs` gem to `Gemfile`:
```ruby
gem 'fotoramajs'
```
2. Install gems:
```sh
bundle install
```
3. Include jQuery in your project. I recommend [jquery-cdn]
or [jquery-rails-cdn].
4. Put `include_fotorama` after jQuery script tag:
```haml
head
= include_jquery
= include_fotorama
```
5. Use Fotorama by [documentation].
[jquery-rails-cdn]: https://github.com/kenn/jquery-rails-cdn
[documentation]: http://fotorama.io/customize/
[jquery-cdn]: https://github.com/ai/jquery-cdn
## Development
To update original library, you can use `rake update` task.