Hello, I need to be able to write a temporary file for use during the
request only.
Locally I can use the following successfully:
tempfile = File.open(a.original_filename,''w'')
tempfile.write_nonblock(a.body)
paperclip stuff........
tempfile.close
That works great, but not on Heroku... How can I do the above with
Heroku''s restrictions:
http://docs.heroku.com/constraints#read-only-filesystem
I''m not understanding how to translate the above into: `#{RAILS_ROOT}/
tmp/myfile_#{Process.pid}`
Thanks for any help you can provide here.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.