Replaced render_to_string with render_to_string_with_format. This allows the reuse of html views with nested partials to be correctly rendered and converted to pdf rather.
Replaced render_to_string with render_to_string_with_format. This allows the reuse of html views with nested partials to be correctly rendered and converted to pdf rather.

agworld/wicked_pdf