On 24 March 2015 at 06:40, Edward Maya <li...@ruby-forum.com> wrote: > Colin Law wrote in post #1170743: >> No, your English is not bad. I think I understand what you want to >> do. But since the link I provided appeared to me to cover what you >> want to do I asked you to explain what in particular you are worried >> might not be available. >> >> Colin > > "But since the link I provided appeared to me to cover what you want to > do" that is where you are getting me wrong paperclip documentation and > links all provided only refers to uploading but i couldn't find anything > in there which gives me the answer for my question "suppose i uploaded a > file in a website then the website will provide me a link which says > share this link with other users so that they can download your file > too" i am just asking this. and yea m not asking for exact code or > proper article from where i can copy paste i just want a proper > direction in this.
I agree the readme is not very clear on this. The url method provides the url to the uploaded file. The section Show View assumes that the file is an image with thumbnails, and so is using image_tag. If instead it is a file to be downloaded you would need something like <%= link_to "Download", @user.avatar.url %> though you would probably not have called it avatar of course, and it may be attached to a model other than User. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtW3_A5CdYKG3ovXoqgvWyRwUSDBZ4Je667EeLdDddLsg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.