Advertisements

Rails Upload Tutorial not working

Postby eturbin » Thu Aug 23, 2007 2:20 pm

Offline
eturbin
Posts: 1
Joined: Thu Aug 23, 2007 2:10 pm
I've tried this several times on different machines and I get the error:

undefined method `save' for DataFile:Class.

Can anyone explain this to me? I followed the instructions carefully and copied all of the code from the examples. I'm new to rails, but it seems like the tutorial should actually work.

Also, how do I call the sanitize_filename and cleanup functions at the end?