Socket
Book a DemoInstallSign in
Socket

comfy_carousel

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comfy_carousel

0.0.3
bundlerRubygems
Version published
Maintainers
2
Created
Source

ComfyCarousel Build Status Dependency Status

This is a small engine that allows you to manage slideshows.

Installation

Add gem definition to your Gemfile:

gem 'comfy_carousel'

Then from the Rails project's root run:

bundle install
rails g comfy:carousel
rake db:migrate

You should be able to access /admin/carousel/carousels where you can add carousels and their slides.

This gem comes bundled with slides.jquery.js that you can use via asset pipeline by adding this line to your app/assets/javascripts/application.js:

//= require slides.jquery

Usage

You'll notice that carousels have dimensions field. You can force-resize uploaded images via ImageMagic values. For example: 300x200# will resize any image to be 300px wide and 200px in height. Also it will crop image if necessary.

There's nothing on the front-end really. You have access to Carousel::Carousel objects that in turn can be used to access their slides. Like so:

@carousel = Carousel::Carousel.find_by_identifier('my_carousel')
@slides = carousel.slides

Each slide will have following attributes: label, content, url, file (paperclip object), and position

ComfyCarousel is released under the MIT license

Copyright 2012 Oleg Khabarov, The Working Group Inc

FAQs

Package last updated on 08 Feb 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.