From: Kenley Tan Date: 2012-05-10T23:26:51+09:00 Subject: Re: How to create a sinatra app that can create ebooks on heroku? --178403900-1498875169-1336659628=:34385 Content-Type: text/plain; charset=us-ascii Hi Hassan, Thanks for responding, but google gave me gems that require the use of commandline tools, but I want it as a sinatra app. Also, I have no idea how to use the tmp directory in heroku and allow users to download files. Thanks Kenley ________________________________ From: Hassan Schroeder To: ruby-talk ML Sent: Thursday, May 10, 2012 9:59 PM Subject: Re: How to create a sinatra app that can create ebooks on heroku? On Thu, May 10, 2012 at 12:54 AM, Kenley Tan wrote: > How do I get my Sinatra app to create epub mobi and pdf files based from > user input and allow the user to download? google `ruby gem epub mobi pdf` > How could it work with Heroku since I'm not sure how heroku can allow users > to download files? If you're generating on the fly, no problem; if you need to store the files, you need to use an external resource like Amazon S3. HTH, -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder twitter: @hassan --178403900-1498875169-1336659628=:34385 Content-Type: text/html; charset=us-ascii
Hi Hassan,

Thanks for responding, but google gave me gems that require the use of commandline tools, but I want it as a sinatra app.

Also, I have no idea how to use the tmp directory in heroku and allow users to download files.

Thanks
Kenley


From: Hassan Schroeder <hassan.schroeder@gmail.com>
To: ruby-talk ML <ruby-talk@ruby-lang.org>
Sent: Thursday, May 10, 2012 9:59 PM
Subject: Re: How to create a sinatra app that can create ebooks on heroku?

On Thu, May 10, 2012 at 12:54 AM, Kenley Tan <kenleytan@yahoo.com> wrote:

> How do I get my Sinatra app to create epub mobi and pdf files based from
> user input and allow the user to download?

google `ruby gem epub mobi pdf`

> How could it work with Heroku since I'm not sure how heroku can allow users
> to download files?

If you're generating on the fly, no problem; if you need to store the
files, you need to use an external resource like Amazon S3.

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan



--178403900-1498875169-1336659628=:34385--