how can I display and image and make it linkable?
example:
=image_tag 'pdf_doc.png' href: => p.pdf.to_s target: "_blank"
how can I display and image and make it linkable?
example:
=image_tag 'pdf_doc.png' href: => p.pdf.to_s target: "_blank"
Just add the "(" to the image tag.
= link_to image_tag ("image.png"), {:action => :p.pdf}