#9 ✓resolved
Bruce Williams

Support Rails 2.2

Reported by Bruce Williams | December 6th, 2008 @ 10:50 AM

Two reports of compatibility issues with Rails 2.2.

  • An empty response
  • PDF generation not occurring, raw LaTeX being returned

Comments and changes to this ticket

  • cmo-0

    cmo-0 December 25th, 2008 @ 05:06 AM

    it worked for me:

    change the line in rtex/lib/rtex/framework/rails.rb

    if result.is_a?(String) && @template.respond_to?(:rendered_with_rtex)

    to

    if result.is_a?(String) && @template.template_format=="pdf"

  • Bruce Williams

    Bruce Williams December 25th, 2008 @ 01:36 PM

    I'll have to verify this doesn't clobber Prawn templates.

  • Joachim Garth

    Joachim Garth December 26th, 2008 @ 06:26 AM

    cmo-0's solution works for me (+1, Thanks!)

  • Bruce Williams

    Bruce Williams January 6th, 2009 @ 06:17 PM

    • State changed from “new” to “open”

    I've pushed up this workaround to the repo in the 'rails-2.2.2' branch, http://github.com/bruce/rtex/tre...

    It will be merged with 'master' once I (or someone else) has the chance to verify compatibility across Rails versions and with the Prawn library.

  • Bruce Williams

    Bruce Williams February 26th, 2009 @ 04:05 PM

    • Tag set to prawn, rails, release, v2-branch
    • State changed from “open” to “resolved”

    The compatibility issue with Rails 2.2.2 (and 2.3, edge) should be fixed as of RTeX v2.1.0, released today. Please let me know if you run into any issues.

    RTeX 2.1.0 also supports using RTeX alongside Prawn in the same Rails application (the solution recommended by cmo-0 for this ticket sidesteps a check designed to ensure RTeX doesn't 'steal' every .pdf render).

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RTeX is a Ruby library (and web framework plugin) used to generate PDF documents on-the-fly using the LaTeX typesetting system.

Pages