Hi,
I solved this by including the absolute path to the directory where the
uploaded files are placed. Now the code is:
#takes the upload object and extracts the file.
def filesave
#Calls the .original_filename method on the upload object and stores in
the variable name
name = upload.original_filename
directory = "/home/resource_portal/website/public/data/upload"
...
This works with WEBrick, but am now using thin.
Hope this helps anyone else experiencing the same problem.
Cheers,
Jen!
--
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+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.