Hi everyone,
I finally uploaded files in RoR. Now I want to download it back trough
the
browser. This is what I get:
Routing Error
No route matches “/uploaded_files/dr_2.pdf” with {:method=>:get}
What can I do?
Regards,
Bruno Guimarães Sousa
Ciência da Computação UFBA
Registered Linux user #465914
Are you able to view the file if you go to yourdomain.com/
uploaded_files/dr_2.pdf ? That’s the first thing to check - is it
really there? If you’re trying to get it, it sould live in RAILS_ROOT/
public/uploaded_files, I believe. It seems like a simple <%= link_to
‘filename’, ‘/uploaded_files/filename’ %> should work.
-Kyle
On Apr 21, 7:05 pm, “Bruno Guimarães Sousa” [email protected]
That’s exactly what I am doing. But it does not work. The file is really
there RAIS_ROOT/uploaded_files/dr_2.pdf
The index view is in
https://disciplinas.dcc.ufba.br/svn/MATA63/2008.1/equipe5/trunk/app/views/projects/index.html.erb
The whole project is in
https://disciplinas.dcc.ufba.br/svn/MATA63/2008.1/equipe5/trunk
Thanks
On Tue, Apr 22, 2008 at 2:14 PM, Kyle [email protected] wrote:
On Apr 21, 7:05 pm, “Bruno Guimarães Sousa” [email protected]
Regards,
Bruno Guimarães Sousa
Ciência da Computação UFBA
Registered Linux user #465914
–
Bruno Guimarães Sousa
Ciência da Computação UFBA
Registered Linux user #465914
On 22 Apr 2008, at 18:39, Bruno Guimarães Sousa wrote:
That’s exactly what I am doing. But it does not work. The file is
really there RAIS_ROOT/uploaded_files/dr_2.pdf
Reread what kyle said: /uploaded_files/filename maps to RAILS_ROOT/
public/uploaded_files/filename.
Fred
The index view is in https://disciplinas.dcc.ufba.br/svn/MATA63/2008.1/equipe5/trunk/app/views/projects/index.html.erb
Thanks guys!
It worked. Sorry for my mistake.
Bruno
On Tue, Apr 22, 2008 at 3:02 PM, Frederick C. <
[email protected]> wrote:
The index view is in
Are you able to view the file if you go to yourdomain.com/
Hi everyone,
Registered Linux user #465914
–
Bruno Guimarães Sousa
Ciência da Computação UFBA
Registered Linux user #465914