#9 ✓resolved
Bruce Williams

Support Rails 2.2

Reported by Bruce Williams | 2008-12-06 10:50:17 UTC

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 2008-12-25 05:06:57 UTC

    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 2008-12-25 13:36:31 UTC

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

  • Joachim Garth

    Joachim Garth 2008-12-26 06:26:45 UTC

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

  • Bruce Williams

    Bruce Williams 2009-01-06 18:17:35 UTC

    • 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 2009-02-26 16:05:50 UTC

    • 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