That''s the problem :-)
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?
On 5/1/06, Ben Reubenstein <benr@x-cr.com> wrote:>
> Put the files in RAILS_ROOT/public/documents
>
> This will make them accesible to anyone.
>
> ~ Ben
>
> On 5/1/06, Larry White <ljw1001@gmail.com> wrote:
> > I have an app that uploads files into the directory
> RAILS_ROOT/documents/
> >
> > I tried to access the file for downloading using <a
> > href="#{RAILS_ROOT}/documents/file_name">my
file</a>.
> >
> > Rails prepends the controller name to the link so I get
> >
> > <a
> > href="
>
http://localhost:3000/tasks/show_document/config/.../documents/file_name"
> >
> > What''s the right way to do this?
> >
> > thanks.
> >
> > _______________________________________________
> > Rails mailing list
> > Rails@lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
> >
> >
>
>
> --
> Ben Reubenstein
> 303-947-0446
> http://www.benr75.com
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060501/53d58616/attachment.html