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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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" <brgso...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <kyle.rabe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Are you able to view the file if you go to yourdomain.com/ > uploaded_files/dr_2.pdf <http://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" <brgso...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > 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 > > >-- Bruno Guimarães Sousa Ciência da Computação UFBA Registered Linux user #465914 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 >> 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 <kyle.rabe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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" <brgso...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > 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 > > > > > -- > Bruno Guimarães Sousa > Ciência da Computação UFBA > Registered Linux user #465914 > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks guys! It worked. Sorry for my mistake. Bruno On Tue, Apr 22, 2008 at 3:02 PM, Frederick Cheung < frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > 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 > > > > > 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 <kyle.rabe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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" <brgso...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > 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 > > > > > > > > > > -- > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---