jquery - Colorbox-rails gem brings up blank lightbox -



jquery - Colorbox-rails gem brings up blank lightbox -

i've installed colorbox-rails gem , followed installation instructions. i'm applying ecommerce product page , want show product images in lightbox.

however, when click on image, lightbox opens it's blank.

here gem page:

https://github.com/stevo/colorbox-rails

here illustration ruby syntax on gem page:

<%= link_to "my superb link", "#", :data => { :colorbox => true } %>

i linking image here code. doesnt work - brings blank lightbox.

<%= image_tag @listing.image.url, :data => { :colorbox => true } %>

i tried below gives me error.

<%= link_to image_tag @listing.image.url, "#", :data => { :colorbox => true } %>

the url phone call works on it's own below it's rest of code.

<%= image_tag @listing.image.url %>

i'd add together multiple images users can click on 1 , click arrows view slideshow.

how that? help appreciated. thanks!

jquery ruby-on-rails colorbox

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -