0
我目前使用此代碼:Rails的覆蓋CSV
CSV.open "application.csv", "a+" do |csv|
csv << [ "#{params[:first_name]}", "#{params[:last_name]}","#{params[:company]}","#{params[:email]}", "#{params[:phone]}", "#{params[:business]}", "#{params[:services]}", "#{params[:employees]}", "#{params[:turnover]}" ]
end
每個時間寫了一個額外的行到CSV,怎麼可以把0將覆蓋每次整個文件代替,因此它總是隻有一行?