Re: [Rails] Re: store pdf directly to amazon

2013-01-27 Thread Saravanan P
ok Tamouse Thank You. let me try this. :) On Sun, Jan 27, 2013 at 2:28 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > On Sat, Jan 26, 2013 at 9:01 PM, Saravanan P > wrote: > > I dont think it will helpful, below is my code, > > > > // in my model > > > > content = File.read

Re: [Rails] Re: store pdf directly to amazon

2013-01-27 Thread tamouse mailing lists
On Sat, Jan 26, 2013 at 9:01 PM, Saravanan P wrote: > I dont think it will helpful, below is my code, > > // in my model > > content = File.read "#{Rails.root}/app/to/mytemplate.html.erb" > template = ERB.new(content) > html_content = template.result(binding) > pdf= WickedP

Re: [Rails] Re: store pdf directly to amazon

2013-01-26 Thread Saravanan P
I dont think it will helpful, below is my code, // in my model content = File.read "#{Rails.root}/app/to/mytemplate.html.erb" template = ERB.new(content) html_content = template.result(binding) pdf= WickedPdf.new.pdf_from_string(html_content) save_path = "#{Rails.roo

[Rails] Re: store pdf directly to amazon

2013-01-26 Thread GT
Using Paperclip, you should be able to configure to store your pdfs onto amazon s3. https://github.com/thoughtbot/paperclip Cheers, GT -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving em