Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lightbox2-js-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightbox2-js-rails

  • 2.9.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

:stars: lightbox2-rails

Gem Version Gem Downloads

Lightbox2 for Rails asset pipeline

  • Modified for Turbolinks and Sprockets' asset digests compatibility

  • Lightbox2 version: 2.8.2

Installation

  1. Add to your Gemfile and install with bundler:
gem 'lightbox2-rails'
bundle install
  1. Add to your config/initializers/assets.rb in order to have the images for lightbox precompiled:
Rails.application.config.assets.precompile += %w( lightbox/* )
  1. Require the modified Lightbox2 javascript file in app/assets/javascripts/application.js:
//= require lightbox

Or in app/assets/javascripts/application.js.coffee:

#= require lightbox
  1. Require the modified Lightbox2 css file in app/assets/stylesheets/application.css:
*= require lightbox

Or in app/assets/javascripts/application.css.scss / app/assets/javascripts/application.css.sass:

@import 'lightbox';
@import lightbox
  1. Changing default options (Optional)

Please refer to Lightbox2 project page.

Acknowledgements

Lightbox2 created by Lokesh Dhakar, licensed under the Creative Commons Attribution 2.5 License

Copyright Gavin Lam, released under the MIT License.

FAQs

Package last updated on 27 Nov 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc