[Rails] Re: How to save rails generated pages to a file on the server

2010-03-19 Thread Fritz Trapper
Philip Hallstrom wrote: render_to_string http://api.rubyonrails.org/classes/ActionController/Base.html#M000659 That puts it into a local variable anyway... if you can then pass that to htmldoc you're on your way. Not sure how this might affect any paths to CSS/images for HTMLDOC though.

Re: [Rails] Re: How to save rails generated pages to a file on the server

2010-03-19 Thread Philip Hallstrom
render_to_string http://api.rubyonrails.org/classes/ActionController/Base.html#M000659 That puts it into a local variable anyway... if you can then pass that to htmldoc you're on your way. Not sure how this might affect any paths to CSS/images for HTMLDOC though. Thanks. CSS is no problem

[Rails] Re: How to save rails generated pages to a file on the server

2010-03-19 Thread Jeff Lewis
You might want to check out: http://code.google.com/p/wkhtmltopdf/ http://www.princexml.com/ wkhtmltopdf is free. prince will cost you. prince has better css print-related implementation coverage at this time, but wkhtmltopdf can be a very good alternative depending on the needs of your

[Rails] Re: How to save rails generated pages to a file on the server

2010-03-19 Thread Jeff Lewis
Since I started using tools (like prince/wkhtmltopdf) to generate pdfs from html/css for web app projects that need to gen pdfs, I've never gone back to using low-level pdf-gen'ing libs/tools (like prawn). Just requires so much less work. By the way, you may also want to look into using