How to reference a file for download

I have an app that uploads files into the directory

I tried to access the file for downloading using my file.

Rails prepends the controller name to the link so I get

<a href="

What’s the right way to do this?


Put the files in RAILS_ROOT/public/documents

This will make them accesible to anyone.

~ Ben

On 5/1/06, Larry W. [email protected] wrote:

What’s the right way to do this?


Rails mailing list
[email protected]

Ben R.

That’s the problem :slight_smile:
They’re not supposed to be accessable to everyone. Access needs to be
restricted through a controller.

If they go in public is there anyway to filter access?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs