[Rails] Re: rails-file-uploading
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...@andreas-s.net>
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/.
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home