Hello. I am comp. new in RoR and i have problems.I followed this
instructions:
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
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: