Skip to content
Advertisement

Tag: nginx

Rails sends 0 byte files using send_file

I can’t get send_file(Model.attachment.path) to work. It doesn’t fail, instead, it sends a 0 byte size file to the client, the file names are correct though. This problem started happening after I did a big migration from Rails 2.3.8 to 3. There were a lot of other things that took place in this migration and I will try my best

Advertisement