Question about Paperclip for Rails
Posted
by sev
on Stack Overflow
See other posts from Stack Overflow
or by sev
Published on 2010-04-01T17:46:32Z
Indexed on
2010/04/02
9:13 UTC
Read the original article
Hit count: 251
I'm using Papeclip(2.3.1.1) with Rails(2.3.5). In my view I write so:
<%= link_to image_tag(p.attachment.url(:small)), p.attachment.url(:original) %>,
and it becomes into
href="/system/attachments/1/original/1.JPG?1270134617 (for a tag)
src="/system/attachments/1/small/1.JPG?1270134617" (for img tag).
And when I click on the picture, my browser (Firefox) offers me to save or open picture and I want to just open picture in browser without any dialogs. I think it's because link contains ?1270134617 after file's name. How can I fix it?
© Stack Overflow or respective owner