# Download a file

**URL:** <https://www.ruby-forum.com/t/download-a-file/108068>\
**Category:** Rails\
**Created:** [June 28, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/download-a-file/108068 "2007-06-28T20:56:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pshussain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@pshussain](https://www.ruby-forum.com/u/pshussain)\
**Post date:** [June 28, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/download-a-file/108068/1 "2007-06-28T20:56:04Z")

</div>

how to write download a file program using Rails  
Wjen i click the link of the file, that file should be download  
How can i do that?  
Tell please  
By  
P.S.Hussain

---

<div class="post-metadata">

**Author:** ![pshussain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@pshussain](https://www.ruby-forum.com/u/pshussain)\
**Post date:** [June 28, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/download-a-file/108068/2 "2007-06-28T21:06:17Z")

</div>

pshussain wrote:

> how to write download a file program using Rails  
> Wjen i click the link of the file, that file should be download  
> How can i do that?  
> Tell please  
> By  
> P.S.Hussain

I think this is covered in most of the available reference sites and  
publications, so there’s no real need to repeat it here.

---

<div class="post-metadata">

**Author:** ![pshussain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@pshussain](https://www.ruby-forum.com/u/pshussain)\
**Post date:** [June 28, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/download-a-file/108068/3 "2007-06-28T21:58:37Z")

</div>

On Jun 28, 2007, at 3:06 PM, Guest wrote:

> –

As true as that is, I’d rather tell the OP to search for “send\_file”  
in the docs or on the web than have my time wasted seeing someone  
else NOT answer the question.

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid
