Thank you Ignacio, i got it working!
I've added the code you suggested in /app/assets/stylesheets/front.scss
I'm looking forward to the bs3.0 implementation tho ;)
Il giorno giovedì 7 agosto 2014 22:37:24 UTC+2, Ignacio Huerta ha scritto:
Hi Alessandro,
Welcome to the list! Support for
I got Paperclip working in my app and I can display an image in a show-page
tag with a link, for instance:
%= image_tag @target.outcome1_photo.url %
I can also make that a button link with:
%= link_to Outcome 1 Photo, @target.outcome1_photo.url, :class = btn
btn-primary %
But my guess guess
Yup, noob mistake. For the benefit of others, here is what I found out:
*a href=%= image_tag @target.outcome1_photo.url %
data-lightbox=image-1 data-title=My captionImage #1/a*
The above is not going to work in a DRYML template because I was trying to
use regular ERB code in what is a DRYML