Skip to content

Instantly share code, notes, and snippets.

@guinslym
Last active January 2, 2016 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guinslym/8233045 to your computer and use it in GitHub Desktop.
Save guinslym/8233045 to your computer and use it in GitHub Desktop.
I want to implement lightbox2 => http://lokeshdhakar.com/projects/lightbox2/ I have downloaded the files and add it to vendor/assets/javascript vendor/assets/stylesheets and vendor/assets/img ==> (that's a folder that comes with lightbox)
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree .
*= require lightbox
*/
<title>Project</title>
<%= stylesheet_link_tag "styles", "lightbox", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
</head>
//= require jquery
//= require lightbox-2.6.min
//= require jquery_ujs
//= require turbolinks
//= require_tree .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment