search for: show_document

Displaying 1 result from an estimated 1 matches for "show_document".

2006 May 01
2
how to reference a file for download
...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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060501/6a9feec9/attachment.html