Working with tempfiles

A while back, I needed to create XML files, send them to a distant server and delete them once the transfer completed.At first, I thought about creating those files into my app’s tmp directory. Then, a cron job would run daily to delete them. It would have worked, but I wasn’t very happy with it.So after looking on the internet, I came across the Tempfile object (and I - for the umpteenth time - rejoiced in using Ruby).
Working with tempfiles #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/working-with-tempfiles

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles