Re: Creating custom files within a rails app

So far I've foudn this:

File.open(local_filename, 'w') {|f| f.write(doc) }

It looks promising.

My main issue though is that I want to generate this file and store it in my public folder. I know that that paperclip can save files to this folder so I will probably just hack their code up in the end and steal it.