I need to use the tmp folder on Heroku (Cedar) for writing some temporarily data, I am trying to do that this way:
tmp
open(\"#{Rails.root}/tmp/#{re
Is /tmp included in your git repo? Removed in your .slugignore? The directory may just not exist out on Heroku.
/tmp
.slugignore
Try tossing in a quick mkdir before the write:
Dir.mkdir(File.join(Rails.root, 'tmp'))
Or even in an initializer or something...