# No action responded to data error using link\_to .download a file from specific location

**URL:** <https://www.ruby-forum.com/t/no-action-responded-to-data-error-using-link-to-download-a-file-from-specific-location/158912>\
**Category:** Rails\
**Created:** [January 29, 2009, 10:53am UTC](https://www.ruby-forum.com/t/no-action-responded-to-data-error-using-link-to-download-a-file-from-specific-location/158912 "2009-01-29T10:53:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Post date:** [January 29, 2009, 10:53am UTC](https://www.ruby-forum.com/t/no-action-responded-to-data-error-using-link-to-download-a-file-from-specific-location/158912/1 "2009-01-29T10:53:31Z")

</div>

Hi ,

I have appliaction which has various type of streams.  
And iam providing a link to stremname .  
ex:suppose i have stream called test.mpeg4 in public/data/test.mpeg4  
folder  
using to link to stream.  
\<%= link\_to stream.name, stream.location %\>

in index page of controller if i click on name of stream it is  
pointing to below link and able to download.  
[http://localhost:3000/data/cmd.txt](http://localhost:3000/data/cmd.txt)

if i use the same link in show page it is pointing to below link  
[http://localhost:3000/streams/data/cmd.txt](http://localhost:3000/streams/data/cmd.txt)

and as a result not able to download stream anddisplaying like  
Unknown action  
No action responded to data. Actions: create, creates, destroy, edit,  
index, new, show, test, and update

can any one suggest how to resolve the problem.

thanks  
Srikanth
