Hello. I am comp. new in RoR and i have problems.I followed this instructions: http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm But when i load http://localhost:3000/upload/index in Safari, i get Template is missing Missing template app\views\upload\uploadfile.rhtml in view path app/views This backslashes seems strange to me and i tried with ''/'' in stead of. Without success. I can''t imagine that the tutorial is wrong. So what''s the problem? Thank you for ideas. eh -- Posted via http://www.ruby-forum.com/.
Hi there... I wrote a tutorial about uploading files in a Rails app using a plugin called "Paperclip" - you might want to try that instead: http://patshaughnessy.net/2009/4/30/paperclip-sample-app - pat On Oct 16, 6:23 pm, Engadiner Haus <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hello. I am comp. new in RoR and i have problems.I followed this > instructions:http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm > But when i loadhttp://localhost:3000/upload/index > in Safari, i get > Template is missing Missing template > app\views\upload\uploadfile.rhtml in view path app/views > > This backslashes seems strange to me and i tried with ''/'' in stead of. > Without success. > I can''t imagine that the tutorial is wrong. So what''s the problem? Thank > you for ideas. eh > -- > Posted viahttp://www.ruby-forum.com/.
ok, thank you. But first i spend some time to find a solution for the other tutorial because i want to understand my mistake. I think now its really a path-problem. As a only-mac-user i did not know, that there indeed exists backslash-paths. eh Pat Shaughnessy wrote:> Hi there... I wrote a tutorial about uploading files in a Rails app > using a plugin called "Paperclip" - you might want to try that > instead: > > http://patshaughnessy.net/2009/4/30/paperclip-sample-app > > - pat > > On Oct 16, 6:23�pm, Engadiner Haus <rails-mailing-l...@andreas-s.net>-- Posted via http://www.ruby-forum.com/.
ok it was a path-desaster combined with a deprecated and subsequently removed function start_form_tag. Engadiner Haus wrote:> ok, thank you. But first i spend some time to find a solution for the > other tutorial because i want to understand my mistake. > > I think now its really a path-problem. As a only-mac-user i did not > know, that there indeed exists backslash-paths. > eh > > > > Pat Shaughnessy wrote: >> Hi there... I wrote a tutorial about uploading files in a Rails app >> using a plugin called "Paperclip" - you might want to try that >> instead: >> >> http://patshaughnessy.net/2009/4/30/paperclip-sample-app >> >> - pat >> >> On Oct 16, 6:23�pm, Engadiner Haus <rails-mailing-l...@andreas-s.net>-- Posted via http://www.ruby-forum.com/.
This tutorial was written by a Windows user. Assuming you are working on a linux / mac osx / unix system you need to change all occurances of "\" to "/" in path specifications. "app\views\upload\uploadfile.rhtml" becomes "app/views/upload/uploadfile.rhtml" Also, based on the "rhtml" extension I''ld say this tutorial is somewhat dated. Current practice would be: "uploadfile.html.erb" If you don''t already know it, this is a good place to start: http://guides.rubyonrails.org/ enjoy On Oct 16, 6:23 pm, Engadiner Haus <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hello. I am comp. new in RoR and i have problems.I followed this > instructions:http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm > But when i loadhttp://localhost:3000/upload/index > in Safari, i get > Template is missing Missing template > app\views\upload\uploadfile.rhtml in view path app/views > > This backslashes seems strange to me and i tried with ''/'' in stead of. > Without success. > I can''t imagine that the tutorial is wrong. So what''s the problem? Thank > you for ideas. eh > -- > Posted viahttp://www.ruby-forum.com/.
this looks sweet for inline file uploading http://coderack.org/users/freels/entries/24-inlineuploader On Oct 17, 10:00 am, Rick <richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This tutorial was written by a Windows user. Assuming you are working > on a linux / mac osx / unix system you need to change all occurances > of "\" to "/" in path specifications. > > "app\views\upload\uploadfile.rhtml" > > becomes > > "app/views/upload/uploadfile.rhtml" > > Also, based on the "rhtml" extension I''ld say this tutorial is > somewhat dated. Current practice would be: > > "uploadfile.html.erb" > > If you don''t already know it, this is a good place to start: > > http://guides.rubyonrails.org/ > > enjoy > > On Oct 16, 6:23 pm, Engadiner Haus <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > Hello. I am comp. new in RoR and i have problems.I followed this > > instructions:http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm > > But when i loadhttp://localhost:3000/upload/index > > in Safari, i get > > Template is missing Missing template > > app\views\upload\uploadfile.rhtml in view path app/views > > > This backslashes seems strange to me and i tried with ''/'' in stead of. > > Without success. > > I can''t imagine that the tutorial is wrong. So what''s the problem? Thank > > you for ideas. eh > > -- > > Posted viahttp://www.ruby-forum.com/.