Sha256: 2a3968db6285d4aafbdc304b81ed51e823267dbd37586740b6d88d4dafefccb3

Contents?: true

Size: 994 Bytes

Versions: 2

Compression:

Stored size: 994 Bytes

Contents

= Rails Blueimp Gallery

This is a rails implementation of the blueimp gallery. Available here: https://github.com/blueimp/Gallery

= Installation

Add it to you Gemfile:

    # Gemfile
    gem 'rails-blueimp-gallery'

Generate the initializer:

    $ rails g blueimp:gallery:install

Add the javascripts to your assets:

    # ./app/assets/javascripts/application.js
    //= require blueimp-gallery
    
Add the stylesheets to your assets:

    # ./app/assets/stylesheets/application.css
    /*
     *= require blueimp-gallery
     */

Add the Helper to your ApplicationController:

    # ./app/controllers/application_controller.rb
    class ApplicationController < ActionController::Base
      view_helper Blueimp::Gallery::ApplicationViewHelper, as: :blueimp_gallery_helper
    end

Add a call to the modal_gallery helper to your layout:

  # app/views/layouts/application.html.erb:
  <%= blueimp_gallery_helper(self).prepare_modal %>


= License

This project rocks and uses MIT-LICENSE.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-blueimp-gallery-0.0.2 README.rdoc
rails-blueimp-gallery-0.0.1 README.rdoc