Rails アプリから一時ファイル (マシンの temp フォルダー内) に書き込む方法、使用しSpreadsheet::Workbook.newている内容を一時ファイルに書き込みたい
1233 次
1 に答える
3
Rubyのを使用できますTempfile:
file = Tempfile.new('prefix')
またはブロックで:
Tempfile.new('prefix') do |file|
# do the work with the file
end
于 2012-08-31T10:56:56.270 に答える