Re: [Rails] Strore pdf in amazon s3 using cron
Next time, please read the documentation before asking a question.
Save it to a file like shown above ^^
Then use the official aws-s3 gem to upload the file.
Write a class or a rake task which does the above, then use whenever to schedule it every day.
--
Dheeraj Kumar
On Saturday 5 January 2013 at 4:13 PM, Saravanan P wrote:
Hello Everyone,I have one model called Message.User can send messages along with 2 more images.I need to take a pdf of each message and store it in amazon s3 for daily basses.I need to show that .pdf (one message) file for admin to download that pdf.I am using wicked_pdf gem to generate pdf and whenever gem for cron task.I can generate pdf file in browser by "generate_pdf" action.butI dont know how to get pdf and store that amazon using cron.Please help!--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/LbMvBbiI1WkJ.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home