Created
July 9, 2014 22:34
-
-
Save Jaffery5/93fbfdb5563c214c6522 to your computer and use it in GitHub Desktop.
Colorbox plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Photos</h1> | |
<% if @profile.portfolios.count >= 1 %> | |
<div id="nanoGallery"> | |
<% @profile.portfolios.each do |user| %> | |
<%=link_to image_tag(user.image.url), user.image.url %> | |
<% end %> | |
</div> | |
<% end %> | |
<script type="text/jQuery"> | |
$(document).ready(function(){ | |
$("#nanoGallery").colorbox(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment