Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  app
  config
  db
  lib
  test
  vendor
  README.md
  Rakefile
Size: Mime:
  README.md

Montage

The Neoteric Design, Inc. gem for image gallery management

Install

rails g montage:install

Model

class MyModel < ActiveRecord::Base
  montage
end

SCSS

@import "montage";

JS

//= require montage

Form

Update title, specs, aspect, size, and id as necessary. Size (minimum) and aspect are optional and passed to Jcrop and enforced there: http://deepliquid.com/content/Jcrop_Manual.html#Setting_Options

<%= render 'montage/form',
           :f      => f,
           :title  => "Key Image",
           :id     => "some_id_for_your_needs",
           :size   => "500x200",
           :aspect => "16 / 9",
           :specs  => "image specs here" %>