# Rails-file-uploading

**URL:** <https://www.ruby-forum.com/t/rails-file-uploading/177431>\
**Category:** Rails\
**Created:** [October 17, 2009, 12:23am UTC](https://www.ruby-forum.com/t/rails-file-uploading/177431 "2009-10-17T00:23:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![engadinerhaus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@engadinerhaus](https://www.ruby-forum.com/u/engadinerhaus)\
**Post date:** [October 17, 2009, 12:23am UTC](https://www.ruby-forum.com/t/rails-file-uploading/177431/1 "2009-10-17T00:23:25Z")

</div>

Hello. I am comp. new in RoR and i have problems.I followed this  
instructions:

> **[Ruby on Rails - File Uploading](http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm)**
>
> Ruby on Rails File Uploading - You may have a requirement in which you want your site visitors to upload a file on your server. Rails makes it very easy to handle this requirement. Now we will proceed with a simple and small Rails project.

But when i load  
[http://localhost:3000/upload/index](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

---

<div class="post-metadata">

**Author:** ![engadinerhaus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@engadinerhaus](https://www.ruby-forum.com/u/engadinerhaus)\
**Post date:** [October 17, 2009, 1:42am UTC](https://www.ruby-forum.com/t/rails-file-uploading/177431/2 "2009-10-17T01:42:42Z")

</div>

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](http://patshaughnessy.net/2009/4/30/paperclip-sample-app)

- pat

On Oct 16, 6:23 pm, Engadiner H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![engadinerhaus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@engadinerhaus](https://www.ruby-forum.com/u/engadinerhaus)\
**Post date:** [October 17, 2009, 12:34pm UTC](https://www.ruby-forum.com/t/rails-file-uploading/177431/3 "2009-10-17T12:34:03Z")

</div>

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:
> 
> [Paperclip sample app - Pat Shaughnessy](http://patshaughnessy.net/2009/4/30/paperclip-sample-app)
> 
> - pat
> 
> On Oct 16, 6:23ï¿½pm, Engadiner H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![engadinerhaus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@engadinerhaus](https://www.ruby-forum.com/u/engadinerhaus)\
**Post date:** [October 17, 2009, 3:01pm UTC](https://www.ruby-forum.com/t/rails-file-uploading/177431/4 "2009-10-17T15:01:38Z")

</div>

ok it was a path-desaster combined with a deprecated and subsequently  
removed function start\_form\_tag.

Engadiner H. 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:
> > 
> > [Paperclip sample app - Pat Shaughnessy](http://patshaughnessy.net/2009/4/30/paperclip-sample-app)
> > 
> > - pat
> > 
> > On Oct 16, 6:23ï¿½pm, Engadiner H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![engadinerhaus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@engadinerhaus](https://www.ruby-forum.com/u/engadinerhaus)\
**Post date:** [October 17, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/rails-file-uploading/177431/5 "2009-10-17T16:02:29Z")

</div>

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:

> **[Ruby on Rails Guides](https://guides.rubyonrails.org/)**
>
> Ruby on Rails Guides

enjoy

On Oct 16, 6:23 pm, Engadiner H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![engadinerhaus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@engadinerhaus](https://www.ruby-forum.com/u/engadinerhaus)\
**Post date:** [October 18, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/rails-file-uploading/177431/6 "2009-10-18T18:18:39Z")

</div>

this looks sweet for inline file uploading

[http://coderack.org/users/freels/entries/24-inlineuploader](http://coderack.org/users/freels/entries/24-inlineuploader)
