def self.save(upload) name = upload['datafile'].original_filename directory = "public/pdf" path = File.join(directory, name) File.open(path, "wb") { |f| f.write(upload['datafile'].read) } end
Ich würde gerne das die Datei immer gleich heißt. Wo setzte ich da am besten an? Gruß Werner Laude http://www.webagentur-laude.de _______________________________________________ rubyonrails-ug mailing list rubyonrails-ug@headflash.com http://mailman.headflash.com/listinfo/rubyonrails-ug