-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to ask questions - Create Google Group around axlsx? #63
Comments
Hello Randy, However, I would like to propose that you start a Google Group for question/answers. Thanks. Bharat |
Hi @bruparel Did you know you can also use to_stream when serializing the package? This creates a StringIO object that you can return to the browser, save to a database, save as a flat file for later download etc. As you are on Heroku - I don't thin this is available for you, but you might also be interested in this old, but interesting post about serving files: http://www.therailsway.com/2009/2/22/file-downloads-done-right/ Finally: Here is the google group - but if you want quick answers, I am usually on IRC (freenode) at #axlsx or #travis Randy |
Thanks Randy. I was able to tweak your code in your blog post and make it work on Heroku. Heroku Cedar stack does not care about where you write the file as long as you don't expect it to survive the current request/response cycle. So it works just fine. From: Randy Morgan reply@reply.github.com Hi @bruparel Did you know you can also use to_stream when serializing the package? This creates a StringIO object that you can return to the browser, save to a database, save as a flat file for later download etc. As you are on Heroku - I don't thin this is available for you, but you might also be interested in this old, but interesting post about serving files: http://www.therailsway.com/2009/2/22/file-downloads-done-right/ Finally: Here is the google group - but if you want quick answers, I am usually on IRC (freenode) at #axlsx or #travis Randy Reply to this email directly or view it on GitHub: |
By the way, where is the google group? From: Randy Morgan reply@reply.github.com Hi @bruparel Did you know you can also use to_stream when serializing the package? This creates a StringIO object that you can return to the browser, save to a database, save as a flat file for later download etc. As you are on Heroku - I don't thin this is available for you, but you might also be interested in this old, but interesting post about serving files: http://www.therailsway.com/2009/2/22/file-downloads-done-right/ Finally: Here is the google group - but if you want quick answers, I am usually on IRC (freenode) at #axlsx or #travis Randy Reply to this email directly or view it on GitHub: |
that would be good to pass on, wouldn't it! |
Hello Randy,
I think this is a wonderful Gem fulfilling a practical requirement. I need to ask some basic questions and hate to open up an issue for it. I can do it if that does not bother you. But these questions are not centered around "issues" with the Gem itself but rather how to use it for solving our problems. Here is an example for a real question that I have:
Your blog post, the example.rb file and Readme file all use a Tempfile to create a temporary file object for streaming to user's browswer. I am using Heroku for my production environment which forbids writing of files to the server. I need a generic way to get around it for "axlsx". I do the following for writing a "CSV" file:
Here, the @type_well is an instance variable with a name column (property).
Can something similar be done for streaming the file to user's browser WITHOUT writing a Tempfile since Heroku does not allow it?
Thanks.
Bharat
The text was updated successfully, but these errors were encountered: