Sha256: 030b4296d931360c22efa77708f53038f664c95356f0511f167332016d041996
Contents?: true
Size: 1.51 KB
Versions: 3
Compression:
Stored size: 1.51 KB
Contents
= Ecm::Pictures 2 = Purpose Create and administrate picture galleries in active admin and display them on in your ruby on rails applictation. Orangebox is used for lightbox support. # Prerequisites * Ruby on Rails 4.x * Twitter Bootstrap 3 = Features * Drop in module for active admin. * Render a gallery with one method call in your views. * Lightbox support. * Picture and Gallery sorting. = Installation Add it to your gemfile: # Gemfile gem 'ecm_pictures2' Install your bundle: > bundle install Generate initializer: > rails generate ecm:pictures:install Add the routes to your config/routes.rb: Rails.application.routes.draw do . . . Ecm::Pictures::Routing.routes(self) end Generate the migrations: > rake ecm_pictures_engine:install:migrations Migrate: > rake db:migrate Add the helper to your application controller: # app/controllers/application_controller.rb class ApplicationController < ActionController::Base helper Ecm::PicturesHelper ... end == Optional: Generate locale files You may want to copy the locales to your app: > rails generate ecm:pictures:locales = Usage You can administrate your pictures and picture galleries in active admin. Once you have a gallery, you can display it like this: <%= render_picture_gallery 'Holidays 2012' %> = Todo * Tests, tests, tests. * Better docs. * Render picture helpers. * Add a published flag to galleries and pictures. = License This project rocks and uses MIT-LICENSE.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ecm_pictures2-1.1.2 | README.rdoc |
ecm_pictures2-1.1.1 | README.rdoc |
ecm_pictures2-1.1.0 | README.rdoc |