search for: document_data

Displaying 1 result from an estimated 1 matches for "document_data".

2006 Feb 06
2
File_field and Firefox
...Development\\contrattositoweb.pdf", Here is firefox one: "upload"=>"contrattositoweb.pdf" That leads at: Errno::ENOENT in Documents#create No such file or directory - contrattositoweb.pdf The important part of the code is, for the view: <p><label for="document_data">Content</label><br/> <%= file_field ''document'', ''upload'' %></p> and in the model document.rb: def upload=(upload_field) self.filename=upload_field self.content_type=MIME::Types.type_for(upload_field) File.open(uplo...